search to directory

April 1, 2011 at 09:28:50
Specs: Windows Vista
I have a directory /logfiles, and there is lot of big log_files. What is the faster way to make search to that directory. awk, perl or grep (or other). Plase, give me example for this. Let say, we must find all files and lines of the files, where is string "thanks".

cd /logfiles ; grep thanks * # is very slowly

Thanks.


See More: search to directory

Report •

#1
April 29, 2011 at 21:15:50
You're right about it being slow.

I tried grep -r thanks (actually, I used a different word)

Then I went to a command prompt in XP & ran

grep -e thanks *.*

The output appeared in a split second.

Then I ran grep -e thanks *.* in FreeBSD & the output appeared just as fast as it did in Windows.

How do you know when a politician is lying? His mouth is moving.


Report •
Related Solutions


Ask Question