Language Selection

English French German Italian Portuguese Spanish

Formatting Text Files for Viewing and Printing in Linux

Filed under
HowTos

The commands offer ways to take plain text files and tidy them up or present them differently for display or printing.

The pr command takes a text file and splits it into pages of text separated by a number of newlines with a header on each page.

The fold command reformats a text file by breaking long lines.

The fmt command takes some text (say an article that you have written in a text editor) and does some sensible reformatting to it.

The a2ps command converts a text file to PostScript and either creates a file or sends it to the printer.

The enscript command does the same thing as a2ps.

Full Article.

More in Tux Machines

Ubuntu 14.10 (Utopic Unicorn) to Reach End of Life Soon

Canonical has just announced that Ubuntu 14.10 (Utopic Unicorn) will reach end on life in just a couple of weeks, on July 23. Read more

You Can Now Upgrade to Linux Mint 17.2 "Rafaela"

Now that Linux Mint 17.2 "Rafaela" has been officially released, both for the MATE and Cinnamon flavors, the upgrade path has been opened for the users of older versions. Read more

YotaPhone drops Android for Sailfish OS

You may not have heard of them but Yota is a Russian company who dared to be different with their YotaPhone 2 smartphone. While most manufacturers tend to stick to tried-and-tested designs, Yota took a risk with the YotaPhone 2 and if you somehow haven’t heard of it, the dual-screen smartphone was one of the most unique Android devices ever made. Read more

Today in Techrights