I'm running this code on shell
mv -f ~/sites/text1.txt ~/sites/text2.txt;find ~/sites/ -type f -exec sha1sum {} >> ~/sites/text.txt \;diff ~/sites/text1.txt ~/sites/text2.txt;
However every time I'm having this error:
find: missing argument to `-exec'
Please anyone figure out how to get this code work?
find
is expecting a terminator\;
. You misplaced it after the redirect>>
. You should have something like-exec sha1sum {} \; >> ~/sites/text.txt