Forgot your password?
typodupeerror

Comment Re:ren-regexp (Score -1) 304

That is an awful lot of code to do what can be done in a single line. Don't take this personally but if you were a sysadmin in my shop and I asked you to rename some files, and you went about it by writing up that script, I'd fire you for stealing time from the company.

$ ls
MVCD-00050.JPG MVCD-00051.JPG
$ for file in *JPG ; do NEW=`echo $file | sed -e 's/JPG/jpg/' -e 's/MVCD/Vacation/'` ; mv "$file" "$NEW" ; done
$ ls
Vacation-00050.jpg Vacation-00051.jpg

Slashdot Top Deals

"Nuclear war can ruin your whole compile." -- Karl Lehenbauer

Working...