nl Flashcards
1
Q
nl
A
Write each FILE to standard output, with line numbers added.
2
Q
nl -b
- d
- f
- h
- i
- l
A
- b, –body-numbering=STYLE, Use STYLE for numbering body lines.
- d, –selection-delimiter=CC, Use CC for logical page delimiters.
- f, –footer-numbering=STYLE, Use STYLE for numbering footer lines.
- h, –header-numbering=STYLE, Use STYLE for numbering header lines.
- i, –line-increment=NUMBER, Line number increment at each line.
- l, –join-blank-lines=NUMBER, Group of NUMBER empty lines counted as one.
3
Q
nl
- n
- p
- s
- v
- w
A
- n, –number-format=FORMAT, Insert line numbers according to FORMAT.
- p, –no-renumber, Do not reset line numbers for each section.
- s, –number-separator=STRING, Add STRING after (possible) line number.
- v, –starting-line-number=NUMBER, Use NUMBER columns for line numbers.
- w, –number-width=NUMBER, Use NUMBER columns for line numbers.
4
Q
nl
[CC]
[STYLE]
[FORMAT]
A
[CC] are two delimiter characters used to construct logical page delimiters; a missing second character implies ‘:’.
[STYLE] is one of:
a, Number all lines
t, Number only nonempty lines.
n, Number no lines.
pBRE, Number only lines that contain a match for the basic regular expression.
[FORMAT] is one of:
ln, Left justified, no leading zeros.
rn, Right justified, no leading zeros.
rz, Right justified, leading zeros.