in reply to Removing a Column from a Two Dimensional Array (via tie)

perl -lape '$_ = join "\t", @F[0,1,3,4]' file > newfile

Replies are listed 'Best First'.
Re^2: Removing a Column from a Two Dimensional Array (via tie)
by ikegami (Patriarch) on Nov 05, 2008 at 06:15 UTC
    See also -F. -F/\t/ is needed if any of the columns can contain a space, such as in the line "Pontiac\tGrand Am\t2004\tGreen\t2\n".