Linux.com

Introducing features from AWK into egrep is silly.

Posted by: Anonymous Coward on June 01, 2006 07:56 AM
This whole concept is nothing more than the following:

grep NAME filename is exactly the same as awk '{if(/NAME/)print}' filename
egrep -o 'REGEX' filename is the exactly same as awk 'BEGIN{RS="REGEX"}{print RT}' filename

where NAME is a string and REGEX is a regular expression.

AWK is much much more powerful than egrep.

Introducing features from AWK into egrep seems stupid when AWK is there.

Jade: <a href="http://linux.coconia.net/" title="coconia.net">http://linux.coconia.net/</a coconia.net>

#

Return to GNU grep's new features