Skip to Content
gnux

-l, --join-blank-lines

Group of NUMBER empty lines counted as one (default 1).

An option of nlx.

Usage

nlx -l NUMBER [FILE]...
nlx --join-blank-lines=NUMBER [FILE]...

Details

ShortLongValueDefaultMeaning
-l--join-blank-linesNUMBERgroup of NUMBER empty lines counted as one (default 1)

Examples

Collapse runs of empty lines so only every second one gets a number

nlx -b a -l 2 poem.txt

Help in the terminal

gnux help nlx --join-blank-lines

On this page