From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078715811894.tru64-unix-managers.marc@archive.invalid> From: Burch Seymour RTPS Date: Thu, 23 Jul 1998 18:08:30 +0000 To: tru64-unix-managers Subject: Summary: Shell strangeness and kill by name X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078715811894 I had asked about why my kill by name command: kill `ps -ef | grep csci2_t2 | grep -v grep | cut -f 2 -d ' ' ` didn't work as I expected it to. Several people noted that cut is probably not doing what I expect it to as multiple spaces can be interpreted as multiple fields. They suggest I use awk instead ala': kill `ps -e | grep csci2_t2 | grep -v grep | awk '{ print $1}'` This seems to work better. I also received a perl script to kill by name. For now, the command line thing above is more in line with my needs. Thanks to all who responded: Ralph Rodriguez Steven Mullin, Stephen David Warren Nestor Ruiz and any who's response is still in the queue somewhere... -- This message from, Encore Computer Corporation MS/108 Burch Seymour 6901 W Sunrise Boulevard Senior Software Engineer Fort Lauderdale, Fl 33313 email: bseymour@encore.com Vox: (954)316-4480 Fax: (954)316-4454