Skip to Content
gnux

-n, --number

Number all output lines.

An option of catx.

Usage

catx -n [FILE]...
catx --number [FILE]...

Details

ShortLongValueDefaultMeaning
-n--numbernonenumber all output lines

Examples

Number the lines of a file

catx -n main.go

Squeeze runs of blank lines into one, then number the result

catx -sn draft.txt

Help in the terminal

gnux help catx --number

On this page