Using awk with rsh

Mitanu Paul mitanu at goedel.top.cis.syr.edu
Wed Jun 26 07:30:24 AEST 1991


I'd like to thank several people who have responded to my initial
query about the command

	rsh spica "ps -l | awk '{ print $4}'"


One solution (by wittig at gmdzi.gmd.de (Georg Wittig)), which works for my
case, is to use

	rsh spica 'ps -l | awk '"'"'{print $4}'"'"

to avoid $4 being interpreted locally.


suresh at uts.amdahl.com (Suresh Padmanabhan) suggested

	rsh spica 'ps -l | awk '{print \$4}'"

which work on UTS.

I'd like to thank mouse at thunder.mcrcim.mcgill.edu (der Mouse) for his article
in helping understand the problem.

-- Mitanu Paul.



More information about the Comp.unix.questions mailing list