Over a million developers have joined DZone.

Rename Multiple Files Of Specified Pattern Recursively

·

for filename in *.sql
 do
  echo $filename;
  w_o_ext=`basename $filename .sql`;
  echo $w_o_ext;
  mv $filename $w_o_ext.psql;
done
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}