|go ahead... be a heretic|
Re: Data extraction from text fileby Anonymous Monk
|on Aug 09, 2011 at 20:55 UTC||Need Help??|
You can do this with Perl or simply with "awk." There are two parts to this problem. The first is recognizing each type of input-line and grabbing the piece that you want from each, storing it in memory. The second is recognizing when the line that you now have (don't forget end-of-file) means that you now have enough information to generate an output-line. "Awk" was built expressly for this, and "perl," long long ago, derived from "awk."