Afficher un message
Vieux 25/08/2006, 14h02   #3
yulangdong
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: newbie question: remove lines from text-file

sorry,

you need escape .

"yulangdong" <yulangdong@hotmail.com> дÈëÏûÏ¢ÐÂÎÅ
:44eef415$1@news.starhub.net.sg...
> sed -i "/......... ......... ......... ......... ......... ......... /d"
> urlog
>
> "Martin Jørgensen" <hotmail_spam@hotmail.com>
> ??????:1k43s3-k95.ln1@news.tdc.dk...
> > Hi,
> >
> > I have a +200 kb log file from which I want to remove lines such as this
> > one:
> >
> > 5950K ......... ......... ......... ......... ......... ......... 59%
> > 5600K ......... ......... ......... ......... ......... ......... 60%
> > 5650K ......... ......... ......... ......... ......... ......... 61%
> >
> > It's called wget-log. I'm not really good at linux bash shells so how do
> > I remove those lines with "......... ......... ......... ........." ?
> >
> > I suppose I could do something like "cat wget-log |
> > (some-command/grep?) > newfile" but there are probably better methods,
> > including not creating a new file...
> >
> >
> > Best regards
> > Martin Jørgensen
> >
> > --

>
> --------------------------------------------------------------------------
> -
> > Home of Martin Jørgensen - http://www.martinjoergensen.dk

>
>



  Réponse avec citation
 
Page generated in 0,05935 seconds with 9 queries