Grep (underscore?) Problem

view full story

http://www.linuxforums.org – Hi All I'm having a problem grep'ing files for a certain string on my server. The command I'm using is: find . -name "*.php" -o -name "*.pl" -o -name "*.cgi" -o -name "*.pm" -o -name "*.xml" -print0 | xargs -0 grep -il "db_name" So, as you can see, I want to search all php|pl|cgi|pm|xml files under the current directory tree and list the path/filenames that contain the string "db_name". I've been using this command format for other strings successfully, but I suspect the underscore is throwing this one out as no matches (HowTos)