How to find the most popular word in a text file through the linux terminal? Need to write a script
Asked
Active
Viewed 163 times
1 Answers
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
- 523
- 3
- 11