aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/mw.awk2
-rw-r--r--bin/onl.awk4
2 files changed, 3 insertions, 3 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
}
diff --git a/bin/onl.awk b/bin/onl.awk
index 466b8451..15e4f46d 100644
--- a/bin/onl.awk
+++ b/bin/onl.awk
@@ -2,8 +2,8 @@
# For each line of input ...
{
- # Strip out non-printable characters and rebuild the fields
- gsub(/[[:cntrl:]]/, "")
+ # Strip out whitespace characters and rebuild the fields
+ gsub(/[\n\t\r ]+/, "")
# Print each field, without a newline; add a leading space if it's not the
# very first one