Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2008 06:17:31 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Polytropon <freebsd@edvax.de>
Cc:        Gary Kline <kline@thought.org>, FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: for awk experts only.
Message-ID:  <20081130061731.0691f5ea.freebsd@edvax.de>
In-Reply-To: <20081130061104.f595db7e.freebsd@edvax.de>
References:  <20081130045944.GA94896@thought.org> <20081130061104.f595db7e.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Replying to my own message: I found a point for improvement.
Why use grep when awk can grep by itself?

% wn foot -over | awk '/Overview/ { printf("%s %s\n", $4, gsub("noun", "n.", $3)); }'

Ah, much better. :-)


-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081130061731.0691f5ea.freebsd>