#! /bin/bash #ls -R | #grep Raw find . -name "*_Raw.txt*" -print | grep -v svn > removals.tmp num=$(gawk 'END{print NR}' removals.tmp) for ((i=1;i<=$num;i++)) do file=$(gawk -v i=$i 'NR==i{print $0}' removals.tmp) svn rm $file done rm removals.tmp