Unix Wiki

Those commands will work on the current dir and the subdirs too.

Obtain the md5 hash of all files on a directory.[]

find . -print | xargs digest -a md5

Obtain the md5 hash of all files on a directory except for the dot (current dir)[]

find . -print | egrep -v '^\.$' | xargs digest -a md5


touch all files on a directory[]

find . -print | xargs touch


NOTE: find can use the parameter -type f instead of just -print for printing only files, and not directories.