[Top][All Lists]

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

Re: grep : Paragraph Parameter

From: Jürgen Kahrs
Subject: Re: grep : Paragraph Parameter
Date: Wed, 25 May 2005 18:54:35 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050414

Stepan Kasal wrote:

>>Here is the part of the manual page on AIX:
>>   Displays the entire paragraph containing matched lines. [...]
>>   The default paragraph separator is a blank line.
> This looks like a perfect job for awk (gawk, or any POSIX implementation):

Indeed. Martin has re-invented the basic principle
of AWK: read the data line-wise, whatever the EOL
characters are.

AWK is most often presented to users as a variant
of SED. Therefore, most users dont know that AWK
has control-flow mechanisms. Maybe it would be better
if AWK was advertised as GREP-with-actions.

reply via email to

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