Re: renaming a file....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 28Dec2006 11:32, bruce <bedouglas@xxxxxxxxxxxxx> wrote:
| i can rename a file in the current dir
| 
| is there a way to be in a parent dir, and rename a file in a child dir?
| 
| i can use the find cmd, and generate the files i want to rename. however, my
| attempts at using the find . -name "foo" | xargs rename... doesn't seem to
| work, as the rename is coming back saying that the file doesn't exist..
| 
| it seems that the rename is operating on files in the current dir, as
| opposed to the files from the 'find'....

Generate "mv" commands from the output of find, and pipe to "sh".
Without knowing exactly what renaming you're doing it's hard to be much
more help.
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

I am now convinced that theoretical physics is actual philosophy.
        - Max Born


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux