AWK/shell quoting

David C Lawrence tale at cs.rpi.edu
Thu Jan 11 12:47:51 AEST 1990


In article <7277 at cbnewsh.ATT.COM> ijk at cbnewsh.ATT.COM (ihor.j.kinal) writes:
> Why not this:
>          awk "BEGIN { print \"'\" } "
>
> Yes, I've tried it, and it does work [and it's simpler than the other
> suggestions].

For this particular case it is just fine but for most awk expressions,
probably including the one from which this particular question was
derived, you want to put the programme specification in single quotes
and not double quotes so that $ environment variable interpretation is
not done.

Dave
-- 
   (setq mail '("tale at cs.rpi.edu" "tale at ai.mit.edu" "tale at rpitsmts.bitnet"))



More information about the Comp.unix.questions mailing list