copy/move files to similar names

when you want to copy or move files to slightly different names (e.g. replacing only one letter in the filename), you can use

1
for i in `ls *`; do cp $i `echo $i | sed "s/search/replace/g"`; done

found on http://www.minihowtos.net/copy-and-rename-multiple-files

Leave a Reply