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
In reply to Re^2: One-line shell script for find and replace
by blazar
in thread One-line shell script for find and replace
by pkk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |