This should work for you.
#!/bin/bash FILES=`svn status | awk '{ print $2}'` for file in $FILES do COUNT=`svn diff $file --diff-cmd 'diff' -x '-w' | wc -l` if [ $COUNT -le 2 ] then echo "$file has only whitespace changes" fi done
Also, instead of returning the strings to the same state, why not just return these files?
source share