Add sort script

main
kirbylife 2026-07-26 01:02:19 -06:00
parent 8c1cedda5a
commit 1db7258b2f
2 changed files with 14 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
/target
Cargo.lock
*.pem
bck.words.txt

12
sort_words.sh 100755
View File

@ -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