bug-gnu-utils
[Top][All Lists]
Advanced

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

grep 2.5: --only for long line runs forever


From: Sven Hartrumpf
Subject: grep 2.5: --only for long line runs forever
Date: Fri, 17 Jan 2003 15:05:04 +0100 (CET)

Hi.
"a" is a file with one long line:
> wc a
      1   33330  242456 a

The indended match is at the end of the line:
> fgrep --version
fgrep (GNU grep) 2.5
> fgrep --only "analysis-quality " a
analysis-quality

Very nice and fast. But:

> grep --version
grep (GNU grep) 2.5
> grep --only "analysis-quality " 
runs forever (I stopped after 5 minutes).

Greetings
Sven

P.S.
This is my actual goal (with many more matching lines!):
grep --only "(analysis-quality [^)]*)" big-file # the closing ) comes after 
some characters
Should I use grep? Or something else? sed?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]