inline editing of files, searching for \n\n\n

2004-05-09 Thread Timothy Duke
Hi, I have got two versions of a script to eliminate single line-feeds from a file. The first one does weird stuff - duplicating lines and messing the text file up. The second one works (I copied it from a Perl guide), but I don't understand why. I would much prefer the first one to work - C

Re: Problem when sort file

2004-05-09 Thread John McKown
On Sun, 9 May 2004, John Doe wrote: > Hello all, > i trying to sort one my file that is 10 MB and contain > records: > --- > aa > adsad > dasd > das > aa > --- > i want to sort and eleminate double records. > I use: > $perl -0777ane '$, = "\n"; @[EMAIL PROTECTED] = (); print sort keys %uniq' \ out

Re: Problem when sort file

2004-05-09 Thread John W. Krahn
John Doe wrote: > > Hello all, Hello, > i trying to sort one my file that is 10 MB and contain > records: > --- > aa > adsad > dasd > das > aa > --- > i want to sort and eleminate double records. > I use: > $perl -0777ane '$, = "\n"; @[EMAIL PROTECTED] = (); print sort keys %uniq' \ out.log > >

Problem when sort file

2004-05-09 Thread John Doe
Hello all, i trying to sort one my file that is 10 MB and contain records: --- aa adsad dasd das aa --- i want to sort and eleminate double records. I use: $perl -0777ane '$, = "\n"; @[EMAIL PROTECTED] = (); print sort keys %uniq' \ out.log But i recive error: Out of memory! Yeah, this is normal,