Re: Add Line break when first of a line changes

2009-02-15 Thread Telemachus
On Sun Feb 15 2009 @ 9:48, Jack Butchie wrote: > I used a tab, then a pipe, both produced the same results. > > LAWNS|123|GOOD > > LAWNS|12|GOOD The results are the same because the test is for the whole line. If you only want to test one field, you need a different script. For example, this will

Re: Add Line break when first of a line changes

2009-02-15 Thread Jack Butchie
I used a tab, then a pipe, both produced the same results. LAWNS|123|GOOD LAWNS|12|GOOD - Original Message - From: "Gunnar Hjalmarsson" To: Sent: Sunday, February 15, 2009 9:16 AM Subject: Re: Add Line break when first of a line changes Jack Butchie wrote: I did som

Re: Add Line break when first of a line changes

2009-02-15 Thread Gunnar Hjalmarsson
Jack Butchie wrote: I did some fiddling with the list. I noticed if the second or third or whatever column wasn't exactly the same as the previous, even though the tex in the first field was the same, line was being added. What's the field separator? -- Gunnar Hjalmarsson Email: http://www.

Re: Add Line break when first of a line changes

2009-02-15 Thread Telemachus
On Sun Feb 15 2009 @ 8:56, Jack Butchie wrote: > I did some fiddling with the list. I noticed if the second or third or > whatever column wasn't exactly the same as the previous, even though the > tex in the first field was the same, line was being added. I then tested > with only the first

Re: Add Line break when first of a line changes

2009-02-15 Thread Gunnar Hjalmarsson
Telemachus wrote: On Sun Feb 15 2009 @ 7:25, Jack Butchie wrote: I have a txt file of products that I would like to be able to insert a blank line whenever the name of the product changes, to make it easier to read. I found this srcipt hunting about but I don't know how to apply it to the te

Re: Add Line break when first of a line changes

2009-02-15 Thread Jack Butchie
us" To: Sent: Sunday, February 15, 2009 8:07 AM Subject: Re: Add Line break when first of a line changes On Sun Feb 15 2009 @ 7:25, Jack Butchie wrote: I have a txt file of products that I would like to be able to insert a blank line whenever the name of the product changes, to make it

Re: Add Line break when first of a line changes

2009-02-15 Thread Jack Butchie
FFLES BAD BAD GOOD WAFFLES BAD BAD GOOD WAFFLES BAD BAD GOOD WAFFLES BAD BAD GOOD WAFFLES BAD BAD GOOD WAFFLES BAD BAD GOOD WAFFLES BAD BAD GOOD - Original Message - From: "Telemachus" To: Sent: Sunday, February 15, 2009 8:07 AM Subject: Re: Add Line break when first of

Re: Add Line break when first of a line changes

2009-02-15 Thread Telemachus
On Sun Feb 15 2009 @ 7:25, Jack Butchie wrote: > I have a txt file of products that I would like to be able to insert a > blank line whenever the name of the product changes, to make it easier to > read. I found this srcipt hunting about but I don't know how to apply it > to the text file. I'v

Add Line break when first of a line changes

2009-02-15 Thread Jack Butchie
I have a txt file of products that I would like to be able to insert a blank line whenever the name of the product changes, to make it easier to read. I found this srcipt hunting about but I don't know how to apply it to the text file. I've tried all kinds of different things but just don't get