From 089e787a5a970f8005cf4ee34b152bf1747b14b0 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 30 Mar 2011 23:25:17 +0200 Subject: More documentation edits. --- awklib/eg/prog/uniq.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'awklib/eg/prog/uniq.awk') diff --git a/awklib/eg/prog/uniq.awk b/awklib/eg/prog/uniq.awk index 07d9b9e8..990387ac 100644 --- a/awklib/eg/prog/uniq.awk +++ b/awklib/eg/prog/uniq.awk @@ -33,7 +33,7 @@ BEGIN \ else if (index("0123456789", c) != 0) { # getopt requires args to options # this messes us up for things like -5 - if (Optarg ~ /^[0-9]+$/) + if (Optarg ~ /^[[:digit:]]+$/) fcount = (c Optarg) + 0 else { fcount = c + 0 @@ -43,7 +43,7 @@ BEGIN \ usage() } - if (ARGV[Optind] ~ /^\+[0-9]+$/) { + if (ARGV[Optind] ~ /^\+[[:digit:]]+$/) { charcount = substr(ARGV[Optind], 2) + 0 Optind++ } -- cgit v1.2.3