Unix has always excelled at processing text, and Linux is no different. And the tools to work with and transform text files still exist on all Linux systems. Like other computer systems, early Unix printed on paper, using a typewriter-style printing device. These printers provided limited formatting options, but with clever application of Unix tools, you could prepare professional-looking documents.
Source: LXer – Use this nifty Unix tool to process text on Linux