for i in *.hdr; do sed -i 's/May 2022/July 2022/g' $i done for i in *.hdr; do sed -i 's/m1/test/g' $i done