yesimnewinperl has asked for the wisdom of the Perl Monks concerning the following question:
There's a folder which contains many *.txt files. Each file contains several tables inside. Each table has its header. Headers are same in all files but number of rows different.
Headers are separated from previous table with empty string symbol. There's no empty string between a header and a table below it.1. I need to split each of these text files into multiple text files using empty strings in each file as delimiters and naming each file as the header is.
2. I need to combine several output text files into one table
For example: SOURCE_FILE.txt:AFTER STEP 1:
AFTER STEP 2:
Thanks and regards!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Split text file into multiple using empty string criteria
by sauoq (Abbot) on May 16, 2012 at 22:11 UTC |