From owner-freebsd-questions@FreeBSD.ORG Sun Jul 31 00:20:59 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 530B016A41F for ; Sun, 31 Jul 2005 00:20:59 +0000 (GMT) (envelope-from parv@pair.com) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD17043D45 for ; Sun, 31 Jul 2005 00:20:58 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([69.160.76.67]) by mta10.adelphia.net (InterMail vM.6.01.04.01 201-2131-118-101-20041129) with ESMTP id <20050731002057.WJES19267.mta10.adelphia.net@default.chvlva.adelphia.net>; Sat, 30 Jul 2005 20:20:57 -0400 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 71C64B515; Sat, 30 Jul 2005 20:21:23 -0400 (EDT) Date: Sat, 30 Jul 2005 20:21:23 -0400 From: Parv To: Paul Schmehl Message-ID: <20050731002123.GA4148@holestein.holy.cow> Mail-Followup-To: Paul Schmehl , f-q References: <20050730065757.GA96641@holestein.holy.cow> <6F3E35504F64CB7D16926AA4@Paul-Schmehls-Computer.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6F3E35504F64CB7D16926AA4@Paul-Schmehls-Computer.local> Cc: f-q Subject: Re: Shell script help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2005 00:20:59 -0000 in message <6F3E35504F64CB7D16926AA4@Paul-Schmehls-Computer.local>, wrote Paul Schmehl thusly... > > --On July 30, 2005 2:57:57 AM -0400 Parv wrote: > > >in message , > >wrote Paul Schmehl thusly... ... > >>@${SED} -e '/man\.macros/r man.macros' -e '/man\.macros/d' > >>${WRKSRC}/doc/${f} \ > >> > ${WRKDIR}/${f} ... > >In the 1st part, sed sends the output of file 'man.macros' to > >standard out if it exists (otherwise no worries) when sed sees > >the 'man\.macros' pattern. > > > >And the 2d part, just deletes that pattern. ... > Thanks! That was the answer. I had to fiddle with it for a while > before I understood what it was doing, but it does exactly what I > need it to do now. Your welcome; i apologize if my reply was cryptic. But then i was working direclty from the man page as my sed-fu is ok but not great. (: - Parv --