Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links