-n, --number
Number all output lines.
An option of catx.
Usage
catx -n [FILE]...
catx --number [FILE]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-n | --number | none | number all output lines |
Examples
Number the lines of a file
catx -n main.goSqueeze runs of blank lines into one, then number the result
catx -sn draft.txtHelp in the terminal
gnux help catx --number