🌳📖💻#3:🌳 — Word Frequenctrees

$ tr -s ‘A-Z’ ‘a-z’ < shakes.txt | tr -sc ‘a-z’ ‘\n’ | sort | uniq -c | sort -n -r | less

Useful Bits

  • Taking text input and keeping some formatting by transforming the newline characters into <p>
  • Creating and hiding DOM Elements
  • Using JavaScript for simple text processing

And here is some Inception for you:

the and i a to some my text for az using of that as it in

--

--

--

feedback, code, projects, life, and education

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Martin Breuss

Martin Breuss

feedback, code, projects, life, and education

More from Medium

All you should know about Python Numpy 1D Arrays

Huawei Machine Learning Kit

Background subtraction in computer vision

Regular Expression (Regex) for Common Situations