Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Mar 2000 12:13:53 -0500
From:      Christopher Masto <chris@netmonger.net>
To:        Adam <bsdx@looksharp.net>, Alfred Perlstein <bright@wintelcom.net>
Cc:        Cliff Rowley <dozprompt@onsea.com>, freebsd-current@FreeBSD.ORG
Subject:   Re: Shared memory - Was: 2 Queries
Message-ID:  <20000301121353.B7557@netmonger.net>
In-Reply-To: <Pine.BSF.4.21.0003011153380.2334-100000@turtle.looksharp.net>; from Adam on Wed, Mar 01, 2000 at 11:54:35AM -0500
References:  <20000301075833.R21720@fw.wintelcom.net> <Pine.BSF.4.21.0003011153380.2334-100000@turtle.looksharp.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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
chris@netmonger.net        info@netmonger.net        http://www.netmonger.net

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


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000301121353.B7557>