awk/testdir/unbundle.awk

5 lines
144 B
Awk

# unbundle - unpack a bundle into separate files
$1 != prev { close(prev); prev = $1 }
{ print substr($0, index($0, " ") + 1) >$1 }