Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!decwrl!shelby!bloom-beacon!eru!luth!sunic!mcsun!ukc!warwick!cudcv From: cudcv@warwick.ac.uk (Rob McMahon) Newsgroups: comp.unix.wizards Subject: Re: csh weirdness (HELP!) Message-ID: <1990Aug16.090417.7187@warwick.ac.uk> Date: 16 Aug 90 09:04:17 GMT References: <1990Aug13.151415.14575@elroy.jpl.nasa.gov> <8000007@hpopd.HP.COM> Sender: news@warwick.ac.uk (Network news) Organization: Computing Services, Warwick University, UK Lines: 18 In article <8000007@hpopd.HP.COM> bd@hpopd.HP.COM (Bob Desinger) writes: >> to kill every instance of a.out I get >> `ps | grep a.out | awk '{printf("%d ",$1);}'`: Ambiguous. > >Can you work around this by changing the awk program to generate the >kill commands, then piping the awk output to the shell? ... The best workaround is just to use \kill `ps | grep a.out | awk '{printf("%d ",$1);}'` to avoid using the shell builtin. Rob -- UUCP: ...!mcsun!ukc!warwick!cudcv PHONE: +44 203 523037 JANET: cudcv@uk.ac.warwick INET: cudcv@warwick.ac.uk Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England