Skip to main content

Strip newlines when using tally

ID
15e6198
date
2025-04-23 08:21:56+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
e04f556
message
Strip newlines when using `tally`
changed files
1 file, 1 addition, 1 deletion

Changed files

text/tally (426) → text/tally (442)

diff --git a/text/tally b/text/tally
index 53fec92..2815ed7 100755
--- a/text/tally
+++ b/text/tally
@@ -16,4 +16,4 @@
 set -o errexit
 set -o nounset
 
-sort | uniq --count | sort --numeric-sort
+sed 's/\r//g' | sort | uniq --count | sort --numeric-sort