diff options
-rw-r--r-- | bin/rfct.awk | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bin/rfct.awk b/bin/rfct.awk index 256841a7..4467f206 100644 --- a/bin/rfct.awk +++ b/bin/rfct.awk @@ -6,11 +6,8 @@ BEGIN { ORS = "\n\n" } -{ - # Strip out control characters, except tab and newline - gsub(/[^[:print:]\n\t]/, "") +# Strip out control characters, except tab and newline +{ gsub(/[^[:print:]\n\t]/, "") } - # If there's anything left, print it - if (length) - print -} +# If there's anything left, print it +length($0) |