Results 1 to 3 of 3
Is there any way to edit multi text file like: Search/Replace?
I can search multi files for a text like in this command:
cat $(find /path) | grep "some text1"
...
- 05-18-2008 #1Just Joined!
- Join Date
- Apr 2008
- Posts
- 20
Can I Edit Multi Files?
Is there any way to edit multi text file like: Search/Replace?
I can search multi files for a text like in this command:
cat $(find /path) | grep "some text1"
but I can't replace it
- 05-18-2008 #2Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
- 05-18-2008 #3Just Joined!
- Join Date
- Apr 2008
- Posts
- 20
Thanks for tip, I was googling in the wrong keywords.
Now I found this:
find . -name '*.txt' |xargs perl -pi -e 's/find/replace/g'
Or this
perl -pi -e 's/find/replace/g' *.txt
Thanks any way


Reply With Quote
