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