|
From: | Dan Jacobson |
Subject: | gawk: "print" not allowed in PATTERN, only in ACTION? |
Date: | 02 Jul 2001 16:34:06 +0800 |
User-agent: | Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
The gawk manual's "print" node doesn't say why one can't use "print" in the PATTERN portion: gawk-3.1.0 '1 && print "wow" && 1{print}'<<! mom ! gawk-3.1.0 '(a=m $1 && (print a > "/dev/stderr")&& a ~ "mom")'<<! wwww ! An error is triggered at "print". Let's say I want to print out some debugging info right then and there... do I have to "hold it in till we get to the next rest area"? :-) -- http://www.geocities.com/jidanni Tel+886-4-25854780 e-mail:restore .com.
[Prev in Thread] | Current Thread | [Next in Thread] |