1 2 3 4 5 6 7 8 9
for a in *; do cp $a $a.NEW; done for a in *.NEW do b=`basename $a .NEW` sed -e '/%input featpost2D;/d' $a > $b # echo $a ----- $b done rm *.NEW