[SlugBug] shell script help
Beneath
ishikodzume at beneath.plus.com
Thu Aug 7 14:48:56 BST 2003
Eh, sorry. I never used cmp and i just assumed it printed that number.
Duh. Hehe. But that isn't the way MY cmp behaves, at least.
Do this instead:
for FILE in $(ls 1/*); do
for FILE2 in $(ls 2/*); do
if [ ! "$(cmp $FILE $FILE2)" ]; then
rm $FILE2
fi
done
done
-=-=-=-
PGP: http://spacecake.hypermart.net/pgp/ishikodzume.pubkey.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.email-lists.org/pipermail/slugbug/attachments/20030807/dcf32684/attachment.bin
More information about the SlugBug
mailing list