Regarding my question:
http://www.experts-exchange.com/OS/Linux/Q_22734079.htmlI'm still have problem with space in file name. the mv command is break :(
Change it to:
find /home/damian/test -iname \*_old`; do mv "$dir" `echo "$dir" | sed -e 's/_old//'`; done
or
find /home/damian/test -iname \*_old`; do mv \"$dir\" `echo \"$dir\" | sed -e 's/_old//'`; done
didn't solve it.
Start Free Trial