in reply to Re^4: part - split up files according to column value
in thread part - split up files according to column value

Sorry terrible formatting. Input file is

field1 field2 field3 split

zweiradlinss 89803607 330525685618 3

zweiradlinss 89803607 310286767428 77

  • Comment on Re^5: part - split up files according to column value

Replies are listed 'Best First'.
Re^6: part - split up files according to column value
by Corion (Patriarch) on Feb 08, 2011 at 14:07 UTC

    There is a bug in the program that makes it

    • handle the last column badly as key column if it has newlines at the end
    • not print the header at all

    I've tested the file against this data:

    field1,field2,field3,split zweiradlinss,89803607,330525685618,3 zweiradlinss,89803607,310286767428,77

    with this command line:

    perl -w part.pl part.csv --header-line=1 --column=3 "--separator=,"

    Thanks for the report! I've fixed the top version and updated it to v0.06.

      Great - thanks for fixing so quickly