nl Flashcards

1
Q

nl

A

Write each FILE to standard output, with line numbers added.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly