Noob Question - Line Count
Posted: Fri Feb 12, 2010 12:04 am
Hi,
As previously mentioned, I am new to textpipe. I am formatting a delimitted file (just one file at a time). I would like to add a footer with a tally of a specific type of line.
Say file looks like so:
Header|fdsfdas|dsads
D|xxxx|yyyy
D|xxxx|yyyy
D|xxxx|yyyy
Footer|linecount|
I need to tally the lines beginning with D|
Is it possible to store this value as a global variable?
Any help would be greatly appreciated.
As previously mentioned, I am new to textpipe. I am formatting a delimitted file (just one file at a time). I would like to add a footer with a tally of a specific type of line.
Say file looks like so:
Header|fdsfdas|dsads
D|xxxx|yyyy
D|xxxx|yyyy
D|xxxx|yyyy
Footer|linecount|
I need to tally the lines beginning with D|
Is it possible to store this value as a global variable?
Any help would be greatly appreciated.