-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Eduardo M KALINOWSKI wrote: > Kamaraju S Kusumanchi wrote: [...] >> Manually diffing the files 50 times is cumbersome. Something like >> >> diff dir1/file*.txt dir2/file*.txt >> >> is what I am after. I do not want to do >> >> diff -r dir1 dir2 [...] > for i in `seq 1 50`; do diff dir1/file$i.txt dir2/file$i.txt > > diff$i.txt ; done
you could also do something like this (using patterns) : for var in dir1/file*.txt; do diff "$var" dir2/ ; done - -- strawks -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHwcoC+2TXLlA5m78RAnSlAJ9u2wB33NiigC7o72O+MaQkG0tAQACffhBo B28+5af8DPxEiPN4UJ5CrUY= =U+tc -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]