Updated the name of tf-06.sh

This commit is contained in:
Crista Lopes
2013-09-27 20:09:26 -07:00
parent c7f8cd5152
commit 048671f404

7
06-candy-factory/tf-06.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/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/'