[ILUG] Little code, please

Colm MacCarthaigh colm at stdlib.net
Tue May 2 20:12:28 IST 2006


On Tue, May 02, 2006 at 08:05:41PM +0100, Paul Jakma wrote:
> cat text.txt |awk -v text=$1 '$2 == text {print $4}' RS="\n\n"
> 
> -v is a standard AWK feature.

So is taking a file as the last argument. For crying out loud people,
think of the pipe carnage! 

-- 
Colm MacCárthaigh                        Public Key: colm+pgp at stdlib.net



More information about the ILUG mailing list