Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Which is faster fgrep or cat | grep

On a very large (200MB) file is there a speed difference between doing 

a) cat file | grep term


b) fgrep term file

I sometimes get the feeling that doing a cat | grep is faster than fgrep ... 
but I would have thought it should be faster

Are there any faster ways of finding something in a large text file?


Get your FREE download of MSN Explorer at

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links