aboutsummaryrefslogtreecommitdiffstats
path: root/awklib/eg/prog/uniq.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-03-30 23:25:17 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-03-30 23:25:17 +0200
commit089e787a5a970f8005cf4ee34b152bf1747b14b0 (patch)
tree0d4783a31e782e02b429d5715d149a5e3df3b813 /awklib/eg/prog/uniq.awk
parent0a4c1c5344b5d6c1750708675901509210497761 (diff)
downloadegawk-089e787a5a970f8005cf4ee34b152bf1747b14b0.tar.gz
egawk-089e787a5a970f8005cf4ee34b152bf1747b14b0.tar.bz2
egawk-089e787a5a970f8005cf4ee34b152bf1747b14b0.zip
More documentation edits.
Diffstat (limited to 'awklib/eg/prog/uniq.awk')
-rw-r--r--awklib/eg/prog/uniq.awk4
1 files changed, 2 insertions, 2 deletions
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++
}