Date: Mon, 1 May 2000 21:57:55 -0400 From: Tim Vanderhoek <vanderh@ecf.utoronto.ca> To: Satoshi - Ports Wraith - Asami <asami@FreeBSD.org> Cc: ports@FreeBSD.org Subject: Re: deleting empty info/dir files Message-ID: <20000501215755.A36256@Hamilton-ppp44812.sympatico.ca> In-Reply-To: <vqcg0s2dn2m.fsf@silvia.hip.berkeley.edu>; from Satoshi - Ports Wraith - Asami on Mon, May 01, 2000 at 01:37:05PM -0700 References: <200005010853.BAA25327@silvia.hip.berkeley.edu> <20000501114242.A21944@ppp.on.bellglobal.com> <vqcg0s2dn2m.fsf@silvia.hip.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 01, 2000 at 01:37:05PM -0700, Satoshi - Ports Wraith - Asami wrote: >>> >>> @unexec if [ -f %D/info/dir ]; then if sed -e '1,/Menu:/d' %D/info/dir | grep -q '^[*] '; then true; else rm %D/info/dir; fi; fi >> >> @unexec if [ -f %D/info/dir] && (! sed -e '1,/Menu:/d' %D/info/dir | grep -q '^[*] '; then rm %D/info/dir; fi > > Could be. But your parens don't match. It is the same expression if you put the closing paren after the grep expression. I need to learn how to use cut'n'paste properly. @unexec if [ -f %D/info/dir ] && (! sed -e '1,/Menu:/d' %D/info/dir | grep -q '^[*] '); then rm %D/info/dir ; fi -- Signature withheld by request of author. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000501215755.A36256>