Public bug reported:
if i run
csv2 -d\| < csv2-testcase.txt | less
the first line of the input file is processed correctly, and the second seems
to be also, but then the next several lines, "raw", are appended to the end.
here is a dump of the first 100 lines of output:
bash minshall-apollo: {1060} csv2 -d\| < csv2-testcase.txt | head -100
/file/record
/file/record/@num=0
/file/record/field0=C0018
/file/record/field1=IRONWORKERS LOCAL UNION NO. 25 POLITICAL EDUCATION COMMITTEE
/file/record/field2=STEVEN N GULICK
/file/record/field3=43335 W 10 MILE
/file/record/field4=P O BOX 965
/file/record/field5=NOVI
/file/record/field6=MI
/file/record/field7=48050
/file/record/field8=U
/file/record/field9=Q
/file/record/field10=
/file/record/field11=T
/file/record/field12=
/file/record/field13=IRON WORKERS; INT'L ASS'N OF BRIDGE...
/file/record/field14=H8TX22313
/file/record
/file/record/@num=1
/file/record/field0=C0059
/file/record/field1=HALLMARK CARDS PAC
/file/record/field2=SARAH MOE
/file/record/field3=2501 MCGEE
/file/record/field4=MD #500
/file/record/field5=KANSAS CITY
/file/record/field6=MO
/file/record/field7=64108
/file/record/field8=U
/file/record/field9=Q
/file/record/field10=UNK
/file/record/field11=M
/file/record/field12=C
/file/record/field13=
/file/record/field14=C0422|AMERICAN MEDICAL ASSOCIATION POLITICAL ACTION
COMMITTEE|WALKER, KEVIN|25 MASSACHUSETTS AVE, NW|SUITE
600|WASHINGTON|DC|20001|B|Q||M|M|AMERICAN MEDICAL ASSOCIATION|
C0489|D R I V E POLITICAL FUND CHAPTER 886|TOM RITTER|3528 W RENO||OKLAHOMA
CITY|OK|73107|U|N||Q|L|TEAMSTERS LOCAL UNION 886|
C0547|KANSAS MEDICAL SOCIETY POLITICAL ACTION COMMITTEE|JERRY SLAUGHTER|623
SW 10TH AVE||TOPEKA|KS|666121627|U|Q|UNK|Q|M|KANSAS MEDICAL SOCIETY|
C0638|INDIANA STATE MEDICAL ASSOCIATION POLITICAL ACTION COMMITTEE|BENNETT,
RHONDA MS|322 CANAL WALK, CANAL LEVEL||INDIANAPOLIS|IN|46202|U|Q||Q|M|INDIANA
STATE MEDICAL ASSOCIATION|
C0729|AMERICAN DENTAL ASSOCIATION POLITICAL ACTION COMMITTEE|ORTEGO, L
STEPHEN DR.| 14TH STREET, NW|SUITE
1100|WASHINGTON|DC|200055627|B|Q|UNK|M|T|NEW JERSEY DENTAL PAC|
C0885|INTERNATIONAL UNION OF PAINTERS AND ALLIED TRADES POLITICAL ACTION
TOGETHER POLITICAL COMMITTEE|GALIS, GEORGE|7234 PARKWAY
DRIVE||HANOVER|MD|21076|B|Q|UNK|M|L|INTERNATIONAL UNION OF PAINTERS AND ALLIED
TRADES|
C0901|BUILD POLITICAL ACTION COMMITTEE OF THE NATIONAL ASSOCIATION OF HOME
BUILDERS (BUILDPAC)|RAMAGE, EILEEN|1201 15TH STREET,
NW||WASHINGTON|DC|20005|B|Q|UNK|M|T|NATIONAL ASSOCIATION OF HOME BUILDERS|
C0935|DCCC|SENA, DANIEL|430 SOUTH CAPITOL STREET, SE|2ND
FLOOR|WASHINGTON|DC|200034024|U|Y|DEM|M||HOUSE SENATE VICTORY FUND|
C0984|UNITED STATES TELECOM ASSOCIATION POLITICAL ACTION COMMITTEE
(TELECOMPAC)|ROEHL, GALEN|601 NEW JERSEY AVENUE, NW|SUITE
600|WASHINGTON|DC|20001|B|Q|UNK|M|T|UNITED STATES TELECOM ASSOCIATION|
C1016|CARPENTERS LEGISLATIVE IMPROVEMENT COMMITTEE UNITED BROTHERHOOD OF
CARPENTERS AND JOINERS|SILINS, ANDRIS|101 CONSTIUTION AVENUE, NW|10TH FLOOR
WEST|WASHINGTON|DC|20001|B|Q|NNE|M|L|UNITED BROTHERHOOD OF CARPENTERS AND
JOINERS OF AMERICA|
C1180|MICHIGAN DOCTORS POLITICAL ACTION COMMITTEE - MICHIGAN STATE MEDICAL
SOCIETY|GHOSE, AMIT MD|P.O. BOX 769||EAST LANSING|MI|48826|U|Q|NNE|Q|T|MICHIGAN
STATE MEDICAL SOCIETY|
C1198|AMERICAN HOTEL AND LODGING ASSOCIATION POLITICAL ACTION COMMITTEE
('HOTELPAC')|MASON, DAVID M.|1250 EYE STREET, NW
#1100||WASHINGTON|DC|200055904|B|Q||M|T||
C1214|TEXAS MEDICAL ASSOCIATION POLITICAL ACTION COMMITTEE|MOJEZATI,
CHRISTINE MS.|401 WEST 15TH STREET||AUSTIN|TX|78701|B|Q|NNE|Q|T|AMPAC|
C1305|REPUBLICAN PARTY OF VIRGINIA INC|SELPH, JOHN G MR.|115 EAST GRACE
STREET||RICHMOND|VA|232191741|U|Y|REP|M||NRSC TARGETED STATE VICTORY COMMITTEE|
C1313|REPUBLICAN PARTY OF MINNESOTA - FEDERAL|SCHERER, BRON|2200 E
FRANKLIN AVENUE|SUITE 201|MINNEAPOLIS|MN|554042395|U|Y|REP|M||PROTECT THE HOUSE|
C1347|HAWAII MEDICAL POLITICAL ACTION COMMITTEE|SPANGLER, JOHN DR.|1360 S.
BERETANIA ST.|#200|HONOLULU|HI|96814|U|Q|UNK|A|M||
C1388|DAIRY FARMERS OF AMERICA, INC. POLITICAL ACTION COMMITTEE; AKA
DFA-PAC|KLIPPENSTEIN, JACKIE|1405 N. 98TH STREET||KANSAS
CITY|KS|66111|B|Q||M|V|DAIRY FARMERS OF AMERICA, INC.|
C1461|ALASKA STATE MEDICAL ASSOCIATION POLITICAL ACTION COMMITTEE
(ALPAC)|ELLERBE, DWIGHT DR. |4107 LAUREL
STREET||ANCHORAGE|AK|99508|U|Q||Q|M|ALASKA STATE MEDICAL ASSOCIATION|
/file/record
/file/record/@num=2
/file/record/field0=C0422
/file/record/field1=AMERICAN MEDICAL ASSOCIATION POLITICAL ACTION COMMITTEE
/file/record/field2=WALKER, KEVIN
/file/record/field3=25 MASSACHUSETTS AVE, NW
/file/record/field4=SUITE 600
/file/record/field5=WASHINGTON
/file/record/field6=DC
/file/record/field7=20001
/file/record/field8=B
/file/record/field9=Q
/file/record/field10=
/file/record/field11=M
/file/record/field12=M
/file/record/field13=AMERICAN MEDICAL ASSOCIATION
/file/record/field14=C0489|D R I V E POLIT