awk/testdir/unbundle.awk

5 lines
144 B
Awk
Raw Normal View History

2019-06-23 09:13:57 +00:00
# unbundle - unpack a bundle into separate files
$1 != prev { close(prev); prev = $1 }
{ print substr($0, index($0, " ") + 1) >$1 }