for i in *.hdr; do sed -i 's/September 2012/September 2013/g' $i done for i in *.hdr; do sed -i 's/Mooring: m2/Mooring: m1/g' $i done