Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: sed question
- To: tlug@example.com
- Subject: Re: sed question
- From: Jake Morrison <jake_morrison@example.com>
- Date: Mon, 11 Jun 2001 22:21:50 -0700 (PDT)
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <3B2595F9.962DD199@example.com>
- Reply-To: Jacob.Morrison@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <cMseP.A.o7E.ybaJ7@example.com>
- Resent-Sender: tlug-request@example.com
Anthony, Sounds like you are trying to hack an autoconf generated file. I think you can specify extra libs to use on the command line when running "configure". Maybe something like LIBS=-lnetinet ./configure And from the "friends don't let friends drive sed" camp: perl -wp -e 's/^LIBS="\$ac_save_LIBS"/LIBS="\$ac_save_LIBS -lnetinet"/g' < infile > outtfile Jake --- Antony Stace <antony@example.com> wrote: > Hi Folks > > I have a config file with the LIBS defined about 250 times through > out > the file. I want to use sed to change each line which starts with > > LIBS=" > > and at the end of the line, before the " mark, insert > > -lnetinet > > , ie the line > > LIBS="$ac_save_LIBS" > > would become > > LIBS="$ac_save_LIBS -lnetinet" > > Can someone please tell me how to do this in sed. > > Cheers > > Tony > > ----------------------------------------------------------------------- > Next Nomikai Meeting: Fri, June 15 19:30- Tengu Tokyo Eki-Mae > Next Technical Meeting: Sat, July 14 13:30- > ----------------------------------------------------------------------- > more info: http://www.tlug.gr.jp Sponsor: Global Online > Japan > __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
- Follow-Ups:
- Re: sed question
- From: Antony Stace <antony@example.com>
- References:
- sed question
- From: Antony Stace <antony@example.com>
Home | Main Index | Thread Index
- Prev by Date: RE: sed question
- Next by Date: Re: sed question
- Prev by thread: Re: sed question
- Next by thread: Re: sed question
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links