-2

How to find the most popular word in a text file through the linux terminal? Need to write a script

1 Answers1

1

This has been answered many times, please use search next time.

tr -c '[:alnum:]' '[\n*]' < test.txt | sort | uniq -c | sort -nr | head -10
AsenM
  • 568