aboutsummaryrefslogtreecommitdiff
path: root/bin/mw.awk
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-07-02 02:13:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-07-02 02:13:25 +1200
commitca3cc521dd28478c9b51b7c3d9a176835cfa6fa9 (patch)
tree5b4e733d72785af750fa4cc164e85cff5f3b89b8 /bin/mw.awk
parentBreak pks(6df) and philsay(6df) in two (diff)
downloaddotfiles-ca3cc521dd28478c9b51b7c3d9a176835cfa6fa9.tar.gz
dotfiles-ca3cc521dd28478c9b51b7c3d9a176835cfa6fa9.zip
Remove POSIX char classes from Awk
I forgot that Debian's awk(1) is still a mawk that doesn't implement e.g. [:alpha:]
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 48f45fb1..95d70c32 100644
--- a/bin/mw.awk
+++ b/bin/mw.awk
@@ -5,6 +5,6 @@ BEGIN {
}
{
for (i = 1; i <= NF; i++)
- if ($i ~ /[[:alpha:]]/)
+ if ($i ~ /[a-zA-Z]/)
print $i
}