10-22-04 07:47 AM
On 21 Oct 2004 13:20:48 -0700, Brent OMalley
<brent.omalley@pegs.com> wrote:
> I am relatively new to unix, and was wondering if there is a faster
> way to search through text files.
>
> I am currently searching through various text files that are usually
> 200 to 800 MB. I am using grep, but was wonder if there were any
> other utilities that would speed up the search, i.e. are there other
> utilities that do a better job than grep?
>
Newer versions of Unix and Linux often use the UTF-8 character set by
default. If your text files are written in multiple languages you may need
UTF-8, but otherwise grep can run much faster using ASCII (LANG=C) or an
8-bit character set (LANG=en_US.iso-8859-15).
--
aptitude is also Y2K-compliant, non-fattening, naturally cleansing, and
housebroken.
[ Post a follow-up to this message ]
|