#!/bin/sh
for f in comp1/* ; do
diff "comp1/$f" "comp2/$f" > "$f.diff"
done
This script assumes you have files of the same name in both directories.
#!/bin/sh
for f in comp1/* ; do
diff "comp1/$f" "comp2/$f" > "$f.diff"
done
This script assumes you have files of the same name in both directories.