aboutsummaryrefslogtreecommitdiff
path: root/bin/mw.awk
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-08-08 10:32:56 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-08-08 10:32:56 +1200
commit89dca912dfe5705dcc7c622e3cba0de633b3baf2 (patch)
treea8de5878b7c411d9bd497908500fbd3f2e6952bd /bin/mw.awk
parentUpdate submodules (diff)
downloaddotfiles-89dca912dfe5705dcc7c622e3cba0de633b3baf2.tar.gz
dotfiles-89dca912dfe5705dcc7c622e3cba0de633b3baf2.zip
Remove two more POSIX character classes
Debian's ancient mawk doesn't support them
Diffstat (limited to 'bin/mw.awk')
-rw-r--r--bin/mw.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mw.awk b/bin/mw.awk
index 95d70c32..c2565cf3 100644
--- a/bin/mw.awk
+++ b/bin/mw.awk
@@ -1,7 +1,7 @@
# Crude approach to get alphabetic words one per line from input, not sorted or
# deduplicated
BEGIN {
- FS = "(--|['_-]*[^[:alnum:]'_-]+['_-]*)"
+ FS = "(--|['_-]*[^[a-zA-Z0-9_]'_-]+['_-]*)"
}
{
for (i = 1; i <= NF; i++)