1 2 3 4 5 6 7 8 9 10 11 12
function make_change() { for f in *_noTZ.json ; do fname=$(basename $f _noTZ.json) ; newname=${fname}.json ; echo "cp $f to $newname"; cp -p $f $newname ; done } make_change cd tests/ make_change ls -l ../ ls -l