diff --git a/sort_words.sh b/sort_words.sh new file mode 100755 index 0000000..955e1b1 --- /dev/null +++ b/sort_words.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +cp words.txt bck.words.txt + +if [ $? -eq 0 ]; then + tr '[:lower:]' '[:upper:]' < words.txt | sort -u > words_tmp.txt + mv words_tmp.txt words.txt + + echo "Done" +else + echo "Fail" +fi