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: Bruno Raoult <braoult@example.com>
- Date: Tue, 12 Jun 2001 13:23:37 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii; format=flowed
- References: <3B2595F9.962DD199@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <ggbcuB.A.U3E.OjZJ7@example.com>
- Resent-Sender: tlug-request@example.com
- User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.0-4GB i686; en-US; rv:0.9) Gecko/20010505
Try: % sed 's/^\(LIBS=.*\)"$/\1 -lnetinet"/' < ifile > ofile Antony Stace 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 > -- "On the side of the software box, in the 'System Requirements' section, it said 'Requires Windows 95 or better'. So I installed Linux." -- Anonymous
- 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