Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!europa.asd.contel.com!gatech!ncar!hsdndev!cmcl2!uupsi!rodan.acs.syr.edu!goedel.top.cis.syr.edu!mitanu From: mitanu@goedel.top.cis.syr.edu (Mitanu Paul) Newsgroups: comp.unix.questions Subject: Re: Using awk with rsh Keywords: awk, rsh Message-ID: <1991Jun25.173024.9704@rodan.acs.syr.edu> Date: 25 Jun 91 21:30:24 GMT References: <9105241726.AA16913@?lri.uwo.ca> <49494@ut-emx.uucp> <1991Jun19.143911.22217@rodan.acs.syr.edu> <1991Jun22.084455.20177@thunder.mcrcim.mcgill.edu> Reply-To: mitanu@top.cis.syr.edu (Mitanu Paul) Organization: CIS Dept., Syracuse University Lines: 25 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@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@uts.amdahl.com (Suresh Padmanabhan) suggested rsh spica 'ps -l | awk '{print \$4}'" which work on UTS. I'd like to thank mouse@thunder.mcrcim.mcgill.edu (der Mouse) for his article in helping understand the problem. -- Mitanu Paul.