Hi, i want to search some word in Text files in SSH which command ? Regards, Tymsah
T Tymsah Well-Known Member Apr 6, 2007 151 0 166 cPanel Access Level Root Administrator Aug 11, 2008 #1 Hi, i want to search some word in Text files in SSH which command ? Regards, Tymsah
H hydra Well-Known Member Mar 26, 2008 102 1 68 Amsterdam, Netherlands Aug 12, 2008 #2 grep searchtext /path/filename
shaheen_ak28 Registered Aug 13, 2008 1 0 51 Cochin, India Aug 13, 2008 #3 grep -ir searchkey * The above command will search for the word within all files under that directory recursively.
grep -ir searchkey * The above command will search for the word within all files under that directory recursively.
C ChrisRHS Well-Known Member Jul 12, 2006 292 5 168 Aug 13, 2008 #4 The following searches a directory and places the name of the file that gets found in the /root/found file find /directory -exec grep -l 'your text here' {} \; > /root/found
The following searches a directory and places the name of the file that gets found in the /root/found file find /directory -exec grep -l 'your text here' {} \; > /root/found