diff options
-rwxr-xr-x | contrib/mthr | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/mthr b/contrib/mthr index 2c4038c..2a32539 100755 --- a/contrib/mthr +++ b/contrib/mthr @@ -18,7 +18,7 @@ NR != FNR { exit } mode==1 && ind==0 { if (sel) for (i in thread) - print thread[i] + print thread[i] split("", thread) sel = 0 } @@ -38,4 +38,9 @@ mode==3 && sel { sel = 0 } mode==3 {parents[ind] = $0 } +END { + if (mode==1 && sel) + for (i in thread) + print thread[i] +} ' - $(mseq $@) |