To remove some lines from a file

Steve Holden steve at holdenweb.com
Wed Oct 25 12:27:14 EDT 2006


Sebastian Busch wrote:
> umut.tabak at student.kuleuven.be wrote:
> 
>>... I would like to remove two lines from a file.
>>...
> 
> 
> I am quite new myself -- but wouldn't grep -v do that easier (and
> perhaps faster)?
> 
Kindly show how to use grep to solve this problem:

   Remove the first two lines that don't begin with "@" from a file.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb       http://holdenweb.blogspot.com
Recent Ramblings     http://del.icio.us/steve.holden




More information about the Python-list mailing list