diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-05 20:47:45 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-05 20:47:45 +1300 |
commit | f3bf70e6011fa19d3aa8e4f2c86fa725a54e3034 (patch) | |
tree | 5506c1705d2deb2a1a618c69f921176a0b21cf89 /bin/onl.awk | |
parent | Use more portable awk stderr write (diff) | |
download | dotfiles-f3bf70e6011fa19d3aa8e4f2c86fa725a54e3034.tar.gz dotfiles-f3bf70e6011fa19d3aa8e4f2c86fa725a54e3034.zip |
I didn't know about :cntrl:
Diffstat (limited to 'bin/onl.awk')
-rw-r--r-- | bin/onl.awk | 2 |
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 |