in reply to Re^10: Split tab-separated file into separate files, based on column name (open on demand)
in thread Split tab-separated file into separate files, based on column name

yes Awk is - similar to JS - using the same datatype for Arrays and Hashes, but ...

> Awk does not have numerically-indexed arrays at all.

Awk has implicitly numbered arrays like ARGV

And ARGV[1] corresponds to $ARGV[0] in Perl

Similarly will awk's split() index the first element with 1 in the resulting "array".

And the first field from auto-split is $1 not $0 , while perl -a will put it into $F[0]

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^11: Split tab-separated file into separate files, based on column name (open on demand)
  • Select or Download Code