diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2020-11-28 20:50:24 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2020-11-28 20:50:24 +0200 |
commit | a93162b21db4ce388ae11b636a51abafaee5b580 (patch) | |
tree | 5f0c0ea65464e2db3677ee3a52c44f0870188306 /awklib/eg/prog/split.awk | |
parent | 6411df848bff9041d0493c6147973ed87801c817 (diff) | |
parent | 45c17dbafdca47c53e812008bade3f7a13115756 (diff) | |
download | egawk-a93162b21db4ce388ae11b636a51abafaee5b580.tar.gz egawk-a93162b21db4ce388ae11b636a51abafaee5b580.tar.bz2 egawk-a93162b21db4ce388ae11b636a51abafaee5b580.zip |
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'awklib/eg/prog/split.awk')
-rw-r--r-- | awklib/eg/prog/split.awk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/awklib/eg/prog/split.awk b/awklib/eg/prog/split.awk index 8714dad2..16780044 100644 --- a/awklib/eg/prog/split.awk +++ b/awklib/eg/prog/split.awk @@ -7,10 +7,12 @@ # Revised slightly, May 2014 # Rewritten September 2020 -function usage() + +function usage( common) { - print("usage: split [-l count] [-a suffix-len] [file [outname]]") > "/dev/stderr" - print(" split [-b N[k|m]] [-a suffix-len] [file [outname]]") > "/dev/stderr" + common = "[-a suffix-len] [file [outname]]" + printf("usage: split [-l count] %s\n", common) > "/dev/stderr" + printf(" split [-b N[k|m]] %s\n", common) > "/dev/stderr" exit 1 } BEGIN { |