i´ve tried all my ideas.
@if ( md5sum foto.jpg
= md5sum fot.jpg
);then echo "OK"; else "FAIL"; fi ;
If you have any idea please help me
Asked
Active
Viewed 174 times
-1

user3236315
- 211
- 2
- 5
1 Answers
0
How about just comparing files, and skip all the fiddling with checksums.
@if cmp foto.jpg fot.jpg >/dev/null; then echo OK; else echo FAIL; exit 1; fi

kerolasa
- 401
- 2
- 5