You're probably best off writing the awk script in its own file instead of straight on the command line. Then you can comment to your heart's content without shell limitations. If you really want to do it inline, you might be able to do a $(# comment in a subshell). I remember doing something like that in the past, but I'm not near a computer to check right now.
You're probably best off writing the
awk
script in its own file instead of straight on the command line. Then you can comment to your heart's content without shell limitations. If you really want to do it inline, you might be able to do a$(# comment in a subshell)
. I remember doing something like that in the past, but I'm not near a computer to check right now.