[ Date Index ][
Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
On Mon, Jul 22, 2002 at 08:02:30PM +0100, Theo Zourzouvillys wrote:
after searning the grep man page for far too long, i see no option for grep exit after finding X number of (line) matches - anyone know of an easy way, short of piping the output through to somethign else?
I can only think of: grep whatever some files | head -n lines I suppose awk could do it, but I'm no good at awk. Perl seems overkill, but you do get nicers regex action. Steve -- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.