Re: FAQ question

From: Bruce Barnett (spamhater113+U050427063331_at_grymoire.com)
Date: 04/27/05


Date: 27 Apr 2005 10:50:58 GMT

Ed Morton <morton@lsupcaemnt.com> writes:

> g) awk '$0 == '"$svar"'' file

I think it's worth highlighting this technique, because it works for
any utility with any shell. I usually tell people about this technique
first, because of this. If you need to pass a variable into sed, for
instance, this is the technique I usually use.

Perhaps you can have a section that discusses passing variables into a
generic utility, and then have the awk section mention the previous
options, and then give those options that only AWK supports.

-- 
Sending unsolicited commercial e-mail to this account incurs a fee of 
$500 per message, and acknowledges the legality of this contract.