05-19-2010, 05:36 PM
|
#6 (permalink)
|
|
The Acquainted
Join Date: Nov 2009
Location: nr Stratford-Upon-Avon
Posts: 137
Thanks: 3
|
if you have shell access you could always use
grep -rl "text to find"
that will look at files in the current and sub directories and give you the file name and the line of text containing the text string...
Think about this a bit more, if it's s string replacement you could use sed...
sed -i 's/foo/foo_bar/g' *.php
* -i = edit the file "in-place": sed will directly modify the file if it finds anything to replace
* s = substitute the following text
* foo = the text string to be substituted
* foo_bar = the replacement string
* g = global, match all occurrences in the line
you need to be sure that the string your are searching for is unique !
__________________
Thanks... Simon
Sex, Drugs & Linux Rules
Last edited by maeltar : 05-19-2010 at 05:41 PM.
Reason: typo's
|
|
|