Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2005 20:21:23 -0400
From:      Parv <parv@pair.com>
To:        Paul Schmehl <pauls@utdallas.edu>
Cc:        f-q <freebsd-questions@freebsd.org>
Subject:   Re: Shell script help
Message-ID:  <20050731002123.GA4148@holestein.holy.cow>
In-Reply-To: <6F3E35504F64CB7D16926AA4@Paul-Schmehls-Computer.local>
References:  <E9E44D6085C02C80E233D138@Paul-Schmehls-Computer.local> <20050730065757.GA96641@holestein.holy.cow> <6F3E35504F64CB7D16926AA4@Paul-Schmehls-Computer.local>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <6F3E35504F64CB7D16926AA4@Paul-Schmehls-Computer.local>,
wrote Paul Schmehl thusly...
>
> --On July 30, 2005 2:57:57 AM -0400 Parv <parv@pair.com> wrote:
> 
> >in message <E9E44D6085C02C80E233D138@Paul-Schmehls-Computer.local>,
> >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

-- 




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