Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I need to extract all data from a file (that is dated 90 days or recent) from the day that the script is run. For ex: if the script is run on 4/1/07 I need to extract all data in the file from 01/01/07-04/01/07. The data should be put in an output file. The date the output file was created should be on the first line. The input data looks as follows:
======= 12/10/04 Begin Session (interact)
line 1
line 2
line 3======= 12/10/04 End Session (interact)
======= 01/19/05 Begin Session (interact)
line 1
-
-
-
-
line 10======= 01/19/05 End Session (interact)
======= 03/08/05 Begin Session (interact)
line 1
-
-
-
-
line 10
======= 03/08/05 End Session (interact)======= 05/06/05 Begin Session (interact)
line 1
line 2
line 3
line 4
-
-
-
line 50
======= 05/06/05 End Session (interact)Thanks
sburgess

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |