[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
None
From: |
collinsd |
Subject: |
None |
Date: |
Fri, 4 Jul 2003 21:41:23 -0400 (EDT) |
Noted something - if you grep for say Bar in a large file
containing:
Bar
Foo
Bar
Foo
.... etc - say 1.3 megs
It takes a very long time to complete - far more than searching
a normal file for the info. This is on an athlon 1.7 ghz, 500 meg ram.
Output from a grep with time stamps at start and end.
address@hidden work]# date
Fri Jul 4 20:33:09 EDT 2003
address@hidden work]# grep Bar outx | wc
date
155449 155449 621796
address@hidden work]# date
Fri Jul 4 20:37:57 EDT 2003
address@hidden work]#
The source file is 1.3 megs of pretty much random Foo Bar alternating
line by line.
I tried grepping on an hpux b138 and it only took a few seconds, but
that is their grep.
- None, cheri, 2003/07/01
- None,
collinsd <=
- None, David de Gruyl, 2003/07/07