use mmv command

Rename the file extension of all .csv files in the current directory to .xls

mmv “*.csv” “#1.xls”

Copy report6part4.txt to ./french/rapport6partie4.txt along with all similarly named files:

mmv -c “report*part*.txt” “./french/rapport#1partie#2.txt”

Append the contents of all .txt files into one file:

mmv -a “*.txt” “all.txt”

Advertisements