13 lines
204 B
Bash
13 lines
204 B
Bash
|
#!/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
|