Re: Inserting/Deleting newline(s) in very large text files

2010-08-13 Thread Dlanor Slegov
: Dlanor Slegov Sent: Thu, August 12, 2010 5:22:58 PM Subject: Re: Inserting/Deleting newline(s) in very large text files On Thu, Aug 12, 2010 at 11:12 AM, Dlanor Slegov wrote: Hi, > >I am dealing with very large text files (a few million lines) and would like >to >check and modify th

Re: Inserting/Deleting newline(s) in very large text files

2010-08-12 Thread Steven D'Aprano
On Thu, 12 Aug 2010 21:25:59 +0200, Thomas Jollans wrote: > Everybody agrees that text files > should end with a line feed, because some text editors might mess up if > they don't. For some definition of "everybody". Obviously the text editors which DON'T mess up don't make the assumption that a

Re: Inserting/Deleting newline(s) in very large text files

2010-08-12 Thread Thomas Jollans
On Thursday 12 August 2010, it occurred to Dlanor Slegov to exclaim: > Hi, > > I am dealing with very large text files (a few million lines) and would > like to check and modify them according to a well defined format. The > format requires ONLY ONE NEWLINE (followed by some sort of text) on top o