Moved the shell script again to the pipeline style, where it belongs (a little better).

This commit is contained in:
Crista Lopes
2014-03-18 15:35:21 -07:00
parent eda158793b
commit 1373ed542d

View File

@@ -1,7 +0,0 @@
#!/bin/sh
grep -o "[A-Za-z][A-Za-z][A-Za-z]*" $1 \
| tr '[:upper:]' '[:lower:]' \
| grep -Ev "^($(sed -e 's/,/|/g' ../stop_words.txt))$" \
| sort | uniq -c | sort -rn | head -25 \
| sed -e 's/^ *\([0-9]*\) *\([a-z]*\)/\2 - \1/'