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: Antony Stace <antony@example.com>
- Date: Tue, 12 Jun 2001 14:33:00 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- References: <7FADCB99FC82D41199F9000629A85D1A01D100A9@example.com>
- Reply-To: antony@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <5lj9BD.A.G9E.tmaJ7@example.com>
- Resent-Sender: tlug-request@example.com
- Sender: antony@example.com
Thanks for the suggestions folks. They worked like a charm. Cheers Tony > Kapil Garg wrote: > > Hi > i think > sed 's/\(LIBS=".*\)"/\1 -Inetinet"/' filename > should work > > -----Original Message----- > From: Antony Stace [mailto:antony@example.com] > Sent: Tuesday, June 12, 2001 9:39 AM > To: tlug@example.com > Subject: sed question > > 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
- References:
- RE: sed question
- From: Kapil Garg <kapil.garg@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: Apache "permission denied"
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links