C and AWK questions - (nf)

jim at ism780b.UUCP jim at ism780b.UUCP
Mon Aug 27 14:13:03 AEST 1984


#R:chemabs:-13400:ism780b:25500019:000:376
ism780b!jim    Aug 25 15:41:00 1984

>        print foo bar | echo

I missed "|" when reading the manual to provide my first answer.
Sorry about that.  But the above won't work.  What you really want is

	cmd = "echo " foo " " bar; print "" | cmd

Also, note that awk does not wait for the command to complete, yielding
results that are surprising, to say the least.

-- Jim Balter, INTERACTIVE Systems (ima!jim)



More information about the Comp.lang.c mailing list