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

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,05135 seconds with 9 queries