diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/mw.awk | 2 | ||||
-rw-r--r-- | bin/rfct.awk | 3 |
2 files changed, 1 insertions, 4 deletions
@@ -1,7 +1,7 @@ # Crude approach to get alphabetic words one per line from input, not sorted or # deduplicated BEGIN { - FS = "(--|['_-]*[^[:alnum:]'_-]+['_-]*)" + FS = "(--|['_-]*[^[a-zA-Z0-9_]'_-]+['_-]*)" } { for (i = 1; i <= NF; i++) diff --git a/bin/rfct.awk b/bin/rfct.awk index 4467f206..90cd8e0d 100644 --- a/bin/rfct.awk +++ b/bin/rfct.awk @@ -6,8 +6,5 @@ BEGIN { ORS = "\n\n" } -# Strip out control characters, except tab and newline -{ gsub(/[^[:print:]\n\t]/, "") } - # If there's anything left, print it length($0) |