-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
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-s | --number-separator | STRING | add STRING after (possible) line number (default TAB) |
Examples
Turn a list of steps into a numbered checklist
nlx -w 2 -s '. ' steps.txt 1. Back up the database
2. Stop the service
3. Run the migrationGive records fixed-width, zero-padded IDs
nlx -n rz -w 5 -s , names.txt > names.csv00001,Ada
00002,Grace
00003,LinusNumber lines left-aligned with no padding before the text
nlx -n ln -w 1 -s ' ' todo.txtHelp in the terminal
gnux help nlx --number-separator