Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

when using MD5 i get a text file output of the full path to the file and file name and then space and the hash.

wondering if there's a way omit the path and just have filename = hash

using terminal via automator


find "$1" -type f -print0 | xargs -0 md5 > "$2/MD5_Digest.md5"
share|improve this question

migrated from stackoverflow.com Dec 24 '12 at 4:31

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Use the -q command-line switch to make the output "quiet"

$ md5 -q my_file_to_test
d41d8cd98f00b204e9800998ecf8427e
$ 
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.