Unix all file replace
I hope i've started this in the correct thread.. anyways..
I am trying to do a text replace in unix to all files in a directory
I've tried this
sed -e 's/include\(\"connect/bob' -i *.php
however it gives an error
I'm sure it has to do with the \(\" part..
sed: -e expression #1, char 24: unterminated `s' command
Basically i want to replace all include("connect with bob...
And there are too many files to do it manually...
I have no experience with unix.. but i heard i can also use GREP?
Any help would be appreciated.
There's a product named UltraEdit that you can download as a trial. It has a built-in "search and replace in files" function.
For those interested, i found the solution.
I was missing a / at the end
So it should be
sed -e 's/include\(\"connect/bob/' -i *.php
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)