Changing the extension of large number of files
I want to change extension of large number of files,
Example: "ABC.dat.length.doc.fasta"
Desired: ABC.mat
solutions for this is:
ls -1 *.dat.length.doc.fasta | nawk '{p=$0;gsub("dat.length.doc.fasta","mat");system("mv "p" "$0); }'
0 comments: