String replacement for all files in directory

Rashkae ubuntu at tigershaunt.com
Sat Nov 29 03:23:05 UTC 2008


Rashkae wrote:
> Kipton Moravec wrote:
>> How do I do a simple string replacement of one string with another
>> string in all files in a directory?
>>
>> For example:
>>
>> I have 1200 files in a directory. Wherever I see the string
>> "footprint=0603C" in any of the files (may occur 0 or multiple times) I
>> want to replace with "footprint=CAPC0603N"
>>
>> I do not know how to figure out what command to use so I can look it up.
>>
>> Kip  
> 
> prename and/or rename.ul
> 

I'm sorry,, I completely mis-read the question.  Go with Joel's method. )




More information about the ubuntu-users mailing list