uwc.sh regexp fix
authorNeszt Tibor <neszt@tvnetwork.hu>
Tue, 30 Sep 2014 13:02:59 +0000 (15:02 +0200)
committerNeszt Tibor <neszt@tvnetwork.hu>
Tue, 30 Sep 2014 13:02:59 +0000 (15:02 +0200)
uwc.sh

diff --git a/uwc.sh b/uwc.sh
index ef4dfb8..6e20945 100755 (executable)
--- a/uwc.sh
+++ b/uwc.sh
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-cat | tr " " "\n" | grep -i "[a-z']\+" | sort | uniq -c | sort -n | awk '{print $2" "$1}'
+tr " " "\n" | grep -i "^[a-z']\+$" | sort | uniq -c | sort -n | awk '{print $2" "$1}'