Quote:
Originally Posted by sysmicuser
What is the issue and how to fix it?
|
Code:
Usage:
rename [options] <expression> <replacement> <file>...
...so rename followed by options followed by an expression, a replacement, and a filename pattern.
Your command has only the expression.
Use the --verbose option to see what's going on.
Have you read
man 1 rename as suggested?
Also review
man find, as you can exec the command within find...I don't think the pipe is doing what you want it to. Something like:
Code:
find -name "* *" -type f -exec ls -l ##to test
find -name "* *" -type f -exec rename 's/ /_/g' {} \; #but I'm not sure of my syntax
Give how unforgiving rename is when it works, search for more information on find and -exec