aboutsummaryrefslogtreecommitdiffstats
path: root/awklib/eg/prog/cut.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-09-27 22:22:15 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-09-27 22:22:15 +0300
commit6f66d82e5794022ec2873d1f3ccba8e1267ca9a3 (patch)
tree9a62f3b51dd28ae5f3c45c76c4270ab415411b9e /awklib/eg/prog/cut.awk
parenteeb0b5d5b0791c580e49e7a6ca4f844f2a0edabb (diff)
downloadegawk-6f66d82e5794022ec2873d1f3ccba8e1267ca9a3.tar.gz
egawk-6f66d82e5794022ec2873d1f3ccba8e1267ca9a3.tar.bz2
egawk-6f66d82e5794022ec2873d1f3ccba8e1267ca9a3.zip
Lots more documentation fixes.
Diffstat (limited to 'awklib/eg/prog/cut.awk')
-rw-r--r--awklib/eg/prog/cut.awk8
1 files changed, 3 insertions, 5 deletions
diff --git a/awklib/eg/prog/cut.awk b/awklib/eg/prog/cut.awk
index 56e35e71..080279bc 100644
--- a/awklib/eg/prog/cut.awk
+++ b/awklib/eg/prog/cut.awk
@@ -12,12 +12,10 @@
#
# Requires getopt() and join() library functions
-function usage( e1, e2)
+function usage()
{
- e1 = "usage: cut [-f list] [-d c] [-s] [files...]"
- e2 = "usage: cut [-c list] [files...]"
- print e1 > "/dev/stderr"
- print e2 > "/dev/stderr"
+ print("usage: cut [-f list] [-d c] [-s] [files...]") > "/dev/stderr"
+ print("usage: cut [-c list] [files...]") > "/dev/stderr"
exit 1
}
BEGIN {