You are given a text in a file. Count all the words in the text and print out the words with their number of occurences in descending order.
Print number of words:
wc -w <filename>
cat <filename> \ | gawk '{for (i=1;i<=NF;i++) print $i}' \ | sort \ | uniq -c \ | sort -rn \ | less