[CentOS] replace multiple string

madunix at gmail.com madunix at gmail.com
Fri Sep 23 20:51:21 UTC 2011


I am planning to have this in 2 stages first -type f    then  -type d

pons

On Fri, Sep 23, 2011 at 11:15 PM,  <m.roth at 5-cent.us> wrote:
> Les Mikesell wrote:
>> On Fri, Sep 23, 2011 at 1:21 PM,  <m.roth at 5-cent.us> wrote:
>>
>>>>> I realized another question: are you trying to rename files?
>>>>>
>>>> yes files and directories too ..
>>>>
>>> Then different commands - sed for the files, mv for the directories.
>>>
>>> This begins to look like a perl script.
>>
>> Either way, it's probably a bad idea to have a script that renames
>> directories in mid-path while you are recursing the tree without
>> giving it some thought.
>
> Urk! Good catch, Les, I hadn't even *thought* of that.
>
>     mark
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>



More information about the CentOS mailing list