par (command)

From Wikipedia, the free encyclopedia
Jump to: navigation, search

The computer program par is a text formatting utility for Unix, written by Adam M. Costello as a replacement for the fmt command.

Par reformats paragraphs of text to fit into a given line length optimally, keeping prefixes and suffixes intact, which is useful for formatting source code comments. It also understands the conventions commonly used for quoting in email replies, and is capable of intelligently reformatting these several levels deep while rewrapping the text they quote.

Par can be evoked from text editors such as Vim or Emacs. Par has good Unicode support, unlike the fmt command. Par also supports text justification, unlike fmt.


  1. Costello, Adam M. (2001). "par.doc". Accessed August 4, 2005.

External links[edit]