Man page - decorate(1)

Packages contains this manual

Manual

DECORATE

NAME
SYNOPSIS
DESCRIPTION

NAME

decorate - convert fields of various formats

SYNOPSIS

decorate [ OPTION ]... [ INPUT ]
decorate
--decorate [ OPTION ]... [ INPUT ]
decorate
--undecorate N [ OPTION ]... [ INPUT ]

DESCRIPTION

Converts (and optionally sorts) fields of various formats

With --decorate : adds the converted fields to the start of each line and prints and prints it to STDOUT; does not sort.

With --undecorate : removes the first N fields from the input; Use as post-processing step after sort(1).

Without --decorate and --undecorate : automatically decorates the input, runs sort(1) and undecorates the result; This is the easiest method to use. The decorate program allows sorting input according to various ordering, e.g. IP addresses, roman numerals, etc. It works in tandem with sort(1) to perform the actual sorting.