Incoming from s. keeling:
> Incoming from Nick W:
> > 
> > ps -e | awk '$4 ~ /xmms/ {print $1 | "echo"}'
> > 
> > echos a blank line, but no error.
> 
> Compare this:
> 
>    ps -e | awk 'BEGIN {ORS=" "} $4 ~ /xmms/ {print $1"\n" ; echo "$1\n"}'
> 
> >From that I get the process number on a line by itself.  Where is the
> "print $1" going?  Standard output?  Where's echo's $1 coming from;
> print or awk?

Change that "print $1" to "print $1 * 2" and you'll see the echo is
just swallowed, the "print" is what's producing output, and changing
the ";" to an "|" swallows everything.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)               http://www.spots.ab.ca/~keeling 
- -

_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to