[LUNI] Global search and replace

Benjamin Mayer Stocks stocksb at ieee.org
Mon Dec 18 18:19:32 CST 2006


Hi All,
Can someone lend me a quick hand: I need to make a global change in a
bunch of .h files, the trick is that this is a ClearCase file system so I
can't run SED on every .h file or SED will change the time stamp and
ClearCase will call it a hijacked file.

So can someone help me write a bash shell command to find all .h files
under the current directory, grep the file and if the string is present
only then run the SED command?

Thanks!

Ben

-- 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Benjamin Mayer Stocks

email: stocksb at ieee.org
cell:  <censored>
aim:   engnrcomputer

Why intentionally "make a mess?" So
you can get really good at "cleaning
up!" - Andy Hertzfeld

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



More information about the luni mailing list