Tuesday, June 19, 2007

To search for string in files

To search for a string in all files from the given directory, grep command can be used. Type:
-> grep -R "string" /path

For example, to search for string "default" in /tmp directory, use this command:
-> grep -R "default" /tmp

1 comment:

gumuruhsspj said...

grep -i -n ‘function wp_content_filterize’ *


for ubuntu....