Oh Thank you very much. I've got a solution here but it only works with Linux. Your solution is perfect to me since it works on Irix/SGI too.
On Tue, 26 Mar 2002 [EMAIL PROTECTED] wrote: > On Tue, 26 Mar 2002, Alan Wilter Sousa da Silva wrote: > > > > > Hi List, I swear I tried, but how can I make a whole line substitution > > using 'sed'? I mean I have a 'word', then I want to find the 'line' where > > 'word' is and so change this whole 'line' by a 'phrase'. All that I got > > with 'sed' by now is change 'word' by another 'word'. > > > > I'd appreciate very much any attention. > > > Try something like: > sed -e 's/^.*line.*$/new_text/' filename > > > > > -- ----------------------- Alan Wilter S. da Silva ----------------------- Laboratório de Física Biológica Instituto de Biofísica Carlos Chagas Filho Universidade do Brasil/UFRJ Rio de Janeiro, Brasil
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com