Getting ready

Besides having a terminal open, several large text files are needed for this recipe. If you have some already, great; if not, install the following:

$ wget http://www.randomtext.me/download/txt/lorem/ol-20/98-98.txt$ fmt 98-98.txt > loremipsum.txt
The fmt command is a simple optimal text formatter. It is used to clean up the output a bit for better results on the command line.

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.