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

ios - iPhone/iPad different view orientations in different views , and apple approval process -

monitor web browser programmatically in Android? -

c# - Using multiple datasets in RDLC -