for awk experts only.

Gary Kline kline at thought.org
Sat Nov 29 21:00:04 PST 2008


	wordnet/wn prints the string "noun" out whereas I'd rather it simply
	printed "n."  Is there a way of making this substitution using awk?
	(I've never used awk except as a cmdline filter.)

	The following fails:

wn foot -over |grep Overview |awk
{if(!strcmp($3,"noun"))$3="n."; '{printf("%s %s\n", $4, $3);}}'

	If there are any shortcuts, please clue me in!


-- 
 Gary Kline  kline at thought.org  http://www.thought.org  Public Service Unix
        http://jottings.thought.org   http://transfinite.thought.org




More information about the freebsd-questions mailing list