From 3defec04e39c4ca6987a21f79686576d9823c653 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sat, 23 Aug 2014 22:40:59 +0300 Subject: More reviewer comments. --- awklib/eg/prog/uniq.awk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'awklib/eg/prog/uniq.awk') diff --git a/awklib/eg/prog/uniq.awk b/awklib/eg/prog/uniq.awk index 990387ac..effc8f6c 100644 --- a/awklib/eg/prog/uniq.awk +++ b/awklib/eg/prog/uniq.awk @@ -18,8 +18,7 @@ function usage( e) # -n skip n fields # +n skip n characters, skip fields first -BEGIN \ -{ +BEGIN { count = 1 outputfile = "/dev/stdout" opts = "udc0:1:2:3:4:5:6:7:8:9:" -- cgit v1.2.3 From a0d7edfff1b489e50ae8751429ebf925948b746f Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 4 Sep 2014 08:49:02 +0300 Subject: Documentation fixes and improvements. --- awklib/eg/prog/uniq.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'awklib/eg/prog/uniq.awk') diff --git a/awklib/eg/prog/uniq.awk b/awklib/eg/prog/uniq.awk index effc8f6c..2a2cf63e 100644 --- a/awklib/eg/prog/uniq.awk +++ b/awklib/eg/prog/uniq.awk @@ -30,7 +30,7 @@ BEGIN { else if (c == "c") do_count++ else if (index("0123456789", c) != 0) { - # getopt requires args to options + # getopt() requires args to options # this messes us up for things like -5 if (Optarg ~ /^[[:digit:]]+$/) fcount = (c Optarg) + 0 -- cgit v1.2.3