You do not need to be smart to use those commands. Merely to learn them. The
'tr' command I added simply turns the dots into newlines (in the general
case, the characters in the first set in argument into the respective
characters in the second set in argument).
If you want to learn those text processing commands (the web page is the text
in your problem), you can take a look at the seven first sets of slides on
that page: http://dcc.ufmg.br/~lcerf/en/mda.html#slides
The data for the exercises are still available at the mentioned addresses and
solutions are included (try to achieve the desired results without looking at
the solutions!).