Advertisement

08.01.2007 at 05:04AM PDT, ID: 22734283
[x]
Attachment Details

Rename some of the files in a directory tree v2

Asked by addady in Linux

Tags: , , , ,

Regarding my question:
http://www.experts-exchange.com/OS/Linux/Q_22734079.html

I'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
[+][-]08.01.2007 at 06:11AM PDT, ID: 19608345

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux
Tags: rename, files, directory, find, linux
Sign Up Now!
Solution Provided By: ravenpl
Participating Experts: 2
Solution Grade: A
 
 
[+][-]08.01.2007 at 09:49AM PDT, ID: 19610601

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.01.2007 at 12:45PM PDT, ID: 19612164

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.01.2007 at 08:55PM PDT, ID: 19614408

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.01.2007 at 09:34PM PDT, ID: 19614525

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32