add script to sort words
parent
e2c7bc243b
commit
56a422c542
|
@ -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
|
Loading…
Reference in New Issue