in reply to Re: One-line shell script for find and replace
in thread One-line shell script for find and replace
To quote from the root node:??perl -pi -w -e 's/find/replace/g;' subdirectory/*.txt [download]
which suggests he wants to traverse a directory tree recursively.How do I make the above one-liner to find and replace in sub-directories ?perl -pi -w -e 's/find/replace/g;' *.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: One-line shell script for find and replace
by pkk (Scribe) on Oct 05, 2005 at 09:11 UTC | |
by blazar (Canon) on Oct 05, 2005 at 09:18 UTC |