search - Searching by hash sha1 in bash script -


how use command find search file hash sha1 in bash script ?

while find doesn't have option check sha1 of file natively, can make find execute sha1sum each file finds , use grep pick check sum looking for. example:

find . -type f -exec sha1sum '{}' ';' | grep 7ceeeeaba7d7e22301dfc5d6707f0c7f3eeb55a8 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -