Saturday, October 27, 2007

Simple and Quick Bash command for renaming files.

for i in `ls`; do mv $i  `echo $i | sed -e 's/SOMETEXTTOREMOVE//g'` ; done


Here is a simple quick fix for having to rename a lot of files in a directory with bash.

No comments: