Re: editing files inline, searching for \n\n\n

2004-05-10 Thread John W. Krahn
Timothy Duke wrote: > > Hi, Hello, > I have got two versions of a script to eliminate single line-feeds from > a file. You should use chomp() to remove newlines. Using the substitution operator globally is forcing the whole line to be scanned. > The first one does weird stuff - duplicating li

RE: editing files inline, searching for \n\n\n

2004-05-10 Thread Charles K. Clarkson
Timothy Duke <[EMAIL PROTECTED]> wrote: : : Also, I understand that the <> operator reads in one : line at a time. If I wish to eliminate only triple : line-feeds (\n\n\n) and leave double and single : linefeeds, I presume <> won't work. Without reading : in the whole file at once, how can I ach