Voder-Vocoder

The Log of Hal Canary

Navigation: Home | THE LOG | Log Archives | Resume | Contact Info | Public Key | SSL | Math Applets | Site Map | WP Backend | RSS2 | Atom

« | »

find-and-sha1sum

#!/bin/sh
# this script will calculate the sha1sum
# for each regular file in the PWD.
# and put it into a file called SHA1SUM.txt
# It prints one "." to the stderr for each
# file processed.
# DTPD

[ -f "SHA1SUM.txt" ] && rm -i SHA1SUM.txt
TMPFILE=`mktemp`
find . -type f \
	-exec sha1sum {} ';' \
	-fprintf /dev/stderr '.' \
	> "${TMPFILE}"
mv "${TMPFILE}" SHA1SUM.txt
echo '' 2>&1

Hal Canary | Computers & Code | 2007-05-17 18:25:57 UTC
Permanent Link Comments Off | No Comments

Comments are closed.

Copyright 1997-2007 by Hal Canary.
mailto: h3 at halcanary dot org
xmpp:halcanary@jabber.org
aim:halwcanary
http://halcanary.org