Siirry sisältöön
Global sound
DistroTube on Odysee

DistroTube on Odysee

'nl' - number lines of files - Video Man Pages

· 6 min

Jakson kuvaus

The 'nl' command adds line numbers to files or to terminal output.

+ Number non-blank lines in a file:
nl path/to/file

+ Number non-blank lines in ouptut from stdin:
command | nl
ex: seq 10 | nl

+ Number [a]ll [b]ody lines including blank lines or do [n]ot number body lines:
nl -b a path/to/file

+ Do [n]ot number [b]ody lines (essentially this suppresses the line numbers):
nl -b n path/to/file

NOTE The above command is not that different than 'cat' or 'less' except that 'nl -b n' does reserve space for where the line numbers would have been.

+ Number only the lines matching a basic…

Sivusto: odysee.com

Livenä, viimeisin tunti: 13 022 kappaletta 5 179 asemalla 107 maassa

Löydä maailma radion kautta

Lisää tapoja löytää (7)

Kuulitko jotain hyvää? Tallenna se tai avaa se suoraan Spotifyssa.

★ Artist of the week The fastest riser on the radio this week
Your song here? From € 9 per week →
Desatados Hits RadioJatka kuuntelua