aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-05 20:47:45 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-05 20:47:45 +1300
commitf3bf70e6011fa19d3aa8e4f2c86fa725a54e3034 (patch)
tree5506c1705d2deb2a1a618c69f921176a0b21cf89 /bin
parentUse more portable awk stderr write (diff)
downloaddotfiles-f3bf70e6011fa19d3aa8e4f2c86fa725a54e3034.tar.gz
dotfiles-f3bf70e6011fa19d3aa8e4f2c86fa725a54e3034.zip
I didn't know about :cntrl:
Diffstat (limited to 'bin')
-rw-r--r--bin/onl.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/onl.awk b/bin/onl.awk
index 10daafed..466b8451 100644
--- a/bin/onl.awk
+++ b/bin/onl.awk
@@ -3,7 +3,7 @@
# For each line of input ...
{
# Strip out non-printable characters and rebuild the fields
- gsub(/[^[:print:]]+/, "")
+ gsub(/[[:cntrl:]]/, "")
# Print each field, without a newline; add a leading space if it's not the
# very first one