add extra line to text file
I'm looking for help editing a text file.
Where the date changes between rows I'd like to insert an extra line. The first row of the file contains 'Sep 1', so will the second, third and so on. Then on maybe the 10th line the date changes to Sep 2 and so will the next and the next and so on. I'd like to insert a line break between where the date changes from Sep 1 to Sep 2. Then I'd like another line break where Sep 2 changes to Sep 3. I'd like to repeat this throughout the file. All rows contain Sep. The date only appears once on each line, but it is not in a fixed position. I mean it is not always a set number of characters from the start of the row. The number of rows on which a date appears is not fixed either. So Sep 1 may appear 10 times, but Sep 2 may only appear 8. The rows are in date order. The text of each row is one long string of varying length. All help greatly appreciated. Regards, Ciarán |
add extra line to text file
|
All times are GMT +1. The time now is 10:10 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Win98Banter.com