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

Tanglu 3.0 Alpha Out Now Based on Debian 8 Jessie, Offers GNOME 3.16 and KDE Plasma 5

Matthias Klumpp announced today, April 18, the immediate availability for download and testing of the first Alpha version of the upcoming Tanglu 3 Linux operating system. Read more

EXT4 In Linux 4.1 Adds File-System Level Encryption

The EXT4 file-system updates for the Linux 4.1 kernel have been sent in and it features the file-system-level encryption support. Earlier this month we wrote about the newly-published patches for EXT4 encryption support coming out of Google and intended to land in the next major release of Android. Those patches for file-system-level encryption will now be landing upstream with the Linux 4.1 kernel update. Besides this native encryption support for EXT4, the rest of the updates for this merge window pull request equate to mainly fixes. More details via the pull request itself. Read more

Manjaro Linux 0.8.13 Pre1 Released for Testing with KDE Plasma 5.2.2 and Xfce 4.12

The Manjaro development team announced that the first Preview release of the upcoming Manjaro Linux 0.8.13 operating system is now available for download in Xfce and KDE Live CD flavors. Read more