Skip to Content
gnux

-s, --number-separator

Add STRING after (possible) line number (default TAB).

An option of nlx.

Usage

nlx -s STRING [FILE]...
nlx --number-separator=STRING [FILE]...

Details

ShortLongValueDefaultMeaning
-s--number-separatorSTRINGadd STRING after (possible) line number (default TAB)

Examples

Turn a list of steps into a numbered checklist

nlx -w 2 -s '. ' steps.txt
Output
 1. Back up the database
 2. Stop the service
 3. Run the migration

Give records fixed-width, zero-padded IDs

nlx -n rz -w 5 -s , names.txt > names.csv
Output
00001,Ada
00002,Grace
00003,Linus

Number lines left-aligned with no padding before the text

nlx -n ln -w 1 -s ' ' todo.txt

Help in the terminal

gnux help nlx --number-separator

On this page