in reply to Re: batch rename with a 1 liner
in thread batch rename with a 1 liner
I recommend putting an echo between the do and mv first to make sure it's doing what you expect.for i in *.html; do mv $i `echo $i|sed 's/unwanted/replace/'`; done
Will need further work if you have whitespace in filenames.
|
|---|