batcater98 has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for any help on this..Example Flat File. Volume in drive E is NEW Data Volume Serial Number is 901D-960F Directory of E:\My_DATA\LooK_Here\Year_2008\02_21_08 02/20/2008 12:52 PM <DIR> . 02/20/2008 12:52 PM <DIR> .. 02/02/2008 11:35 AM 851,744 01ID0801.dat 02/05/2008 11:35 AM 61 01ID0801.sta 02/09/2008 11:36 AM 299,216 01ID0823.dat 02/09/2008 11:36 AM 61 01ID0823.sta 02/10/2008 11:36 AM 373,018 01ID0827.dat 02/10/2008 11:36 AM 61 01ID0827.sta 02/11/2008 11:37 AM 49,258 01ID0855.dat 02/11/2008 11:37 AM 61 01ID0855.sta 02/15/2008 11:37 AM 427,803 01ID0861.dat 02/15/2008 11:37 AM 61 01ID0861.sta 02/18/2008 11:37 AM 282,035 01ID0865.dat 02/18/2008 11:38 AM 61 01ID0865.sta 1604 File(s) 386,639,292 bytes 2 Dir(s) 78,292,127,744 bytes free .End Flat File Example. .Output Desired. Record 1 Date-Time = 02/02/2008 11:35 AM Size = 851,744 Name = 0801 (This is always 4 characters to left of the .) Record 2 Date-Time = 02/09/2008 11:36 AM Size = 299,216 Name = 0823 (This is always 4 characters to left of the .) ect....
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing Values from a Flat File?
by graff (Chancellor) on Feb 22, 2008 at 02:58 UTC | |
|
Re: Parsing Values from a Flat File?
by Joost (Canon) on Feb 21, 2008 at 19:34 UTC | |
|
Re: Parsing Values from a Flat File?
by NetWallah (Canon) on Feb 21, 2008 at 20:05 UTC | |
|
Re: Parsing Values from a Flat File?
by GrandFather (Saint) on Feb 21, 2008 at 19:42 UTC | |
|
Re: Parsing Values from a Flat File?
by roboticus (Chancellor) on Feb 21, 2008 at 19:35 UTC | |
by wardy3 (Scribe) on Feb 22, 2008 at 04:33 UTC |