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.
In reply to Re: Re: batch rename with a 1 liner
by DrHyde
in thread batch rename with a 1 liner
by Theo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |