On Wed, Mar 01, 2000 at 11:54:35AM -0500, Adam wrote:
> #!/bin/sh
> ipcs | sed "s/[       ][      ]*/ /g" | cut -f 2 -d" " | sed
> "s/[^0-9]//g" | xargs -t -n 1 ipcrm -m 

Always with the sed.  ipcrm `ipcs -m | awk '$1 == "m" { print "-m " $2 }'`
anyone?
-- 
Christopher Masto         Senior Network Monkey      NetMonger Communications
[EMAIL PROTECTED]        [EMAIL PROTECTED]        http://www.netmonger.net

Free yourself, free your machine, free the daemon -- http://www.freebsd.org/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to