[Lula] Command line search/replace question
Peter Benjamin
pete at peterbenjamin.com
Mon Dec 11 15:29:46 EST 2006
At 11:48 AM 12/11/2006, TheBlueSage wrote:
>in most of the files is a text string "blahOneBlahTwo". I want to
>replace it with the text string "newOnenewTwo" in EVERY case,
>recursively through the entire directory and its subs... (maybe four
>deep, and a total of 60 files.)
Here is a hint:
xargs -exec sed -e 's/blahOneBlahTwo/newOnenewTwo/g'
You can use find to pass the pathnames to xargs, but it sounds
like it would be too great in length for a pipe. So, check
if xargs will not recurse the subtree for you.
BTW, UUASC archive from 1-2 weeks ago had this issue, or similar.
More information about the Lula
mailing list