for file in `find src -name '*'` do sed 's/[ ]\{1,\}$//' $file > tmp cmp -s $file tmp && continue diff -u $file tmp | cat -e mv -i tmp $file done
Committing now... -- Angus
whitespace.diff.gz
Description: GNU Zip compressed data
for file in `find src -name '*'` do sed 's/[ ]\{1,\}$//' $file > tmp cmp -s $file tmp && continue diff -u $file tmp | cat -e mv -i tmp $file done
Committing now... -- Angus
whitespace.diff.gz
Description: GNU Zip compressed data