(29-06-2020, 12:49 PM)ReneZ wrote: You are not allowed to view links. Register or Login to view.I have all the files available, but not the tool to check for anagrams...
You can create a dictionary ( dictionary.txt ) and then use this AWK code ( a-z ).
Code:
#!/bin/bash
for x in {a..z}
do
gawk -f anagram.awk dictionary.txt | grep ^${x} > ${x}.txt
cat ${x}.txt >> all.txt
done
awk '{ print NF, $0 }' all.txt > all2.txt
sort all2.txt > all3.txt
