kirkbrown has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
How would I read through multiple text files for the following text (between the #):
##################
RECORD: 4499
'Field: CSPAN'
'MSG# VA - 0001 - 02'
##################
Key things to note: The 'RECORD' value changes. The letters and numbers after 'MSG#' will vary. Also, I want to keep track of the last file number scanned, so I do not receive duplicates.
The final thing I want to do is put the resulting extracted text into a .csv file.
My Unix system does not have the latest modules, so I need to script everything from scratch.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Read files and convert extracted text to .csvc
by cdarke (Prior) on May 22, 2010 at 14:06 UTC | |
|
Re: Read files and convert extracted text to .csvc
by toolic (Bishop) on May 22, 2010 at 13:20 UTC | |
|
Re: Read files and convert extracted text to .csvc
by graff (Chancellor) on May 22, 2010 at 14:43 UTC | |
by AnomalousMonk (Archbishop) on May 22, 2010 at 18:33 UTC |