xref: /aosp_15_r20/external/one-true-awk/testdir/unbundle.awk (revision 9a7741de182b2776d7b30d6355f2585c0780a51b)
1*9a7741deSElliott Hughes# unbundle - unpack a bundle into separate files
2*9a7741deSElliott Hughes
3*9a7741deSElliott Hughes$1 != prev { close(prev); prev = $1 }
4*9a7741deSElliott Hughes           { print substr($0, index($0, " ") + 1) >$1 }
5