in reply to Re: Re: Re: Re: Re: Need one-liner to s///g in all sub-dirs
in thread Need one-liner to s///g in all sub-dirs
and recurse from there.. the current directory /* all dirs in next level down /* all files in those dirs
If the recursion happens with the perl example, it doesn't matter in my case since there is nothing there.
I'd still like to know if %perl -pie 's/old/new/g' ./*/* does what I want.
Meditation: This whole thing has taken a direction that I am bemused by. I thought I was asking a simple and straightforward question. The discussion has ranged far and wide. And I find myself in the position of 'arguing' with answers that seem not to answer the question I asked but rather go in different directions. If I am seeming ungrateful, ungracious, or argumentative, I apologize. I really am just trying to get clarity on my measily half-line solution.
If my solution does not do what I want, just say that and explain where I have gone astray. And if my solution fails, I would be very happy to see a pure-perl command-line solution if that is possible.
Thanks to all for your (presumed) patience.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: Re: Need one-liner to s///g in all sub-dirs
by blakem (Monsignor) on Aug 25, 2001 at 10:34 UTC |