Skip to Content
gnux

-b, --number-nonblank

Number nonempty output lines, overrides -n.

An option of catx.

Usage

catx -b [FILE]...
catx --number-nonblank [FILE]...

Details

ShortLongValueDefaultMeaning
-b--number-nonblanknonenumber nonempty output lines, overrides -n

Examples

Number only the non-empty lines

catx -b poem.txt

Help in the terminal

gnux help catx --number-nonblank

On this page