Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!hsdndev!dartvax!mars!nic!kira!emily!moore From: moore@emily.uvm.edu (Bryan Moore) Newsgroups: comp.unix.aix Subject: Easy(?) problem for shell script writers Message-ID: <1991May9.151138.21246@uvm.edu> Date: 9 May 91 15:11:38 GMT Sender: news@uvm.edu Organization: Univ. of Vermont, Eng., Math., and Bus. Admin. (EMBA) Computer Facility Lines: 26 I am trying to write a shell script (AIX 3.1 ksh) that does the following, takes the output from an (awk) command, say STRING1 STRING2 STRING3 and use each of those strings as a parameter to the fgrep of a system call. I want to do a 'ps | fgrep $1' where $1 is each of the above strings, but obviously the above is incorrect. There must be an easy way to do this. I hope my explanation is understandable. If I should be posting this to another group, let me know ( I'm sure someone will!). Thanks! BRYAN R. MOORE | "Last night I had that same old dream EMAIL: moore@uvm-gen.uvm.edu | it rocked me in my sleep, it gave me USMAIL: 12 Waybury Rd. Colchester, | the impression the sandman plays for Vermont 05446 | keeps..." Larry Norman