On Wednesday 09 June 2004 22:41, Roger wrote: > Hi. There > > I plan to use md5sum to get the digest of each file in some > folders, like /etc /sbin .. and keep this as cron job, so that I > can check the integrity of system. > But it seems that md5sum can't calculate a sub folder, and always > inform that something is a folder bla bla.. > So, what should I do? Thanks! A quick hack that you may find useful.... find <path> -print | xargs -i file {} | grep -v directory | cut -d : -f 1 | xargs -i md5sum {} All on one line and replace <path> above with your desired directory. Regards, Mike Klinke -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list