coreutils commands: move pages to common/ folder (#2442)

This commit is contained in:
Felix Yan
2018-10-17 01:29:50 +08:00
committed by Starbeamrainbowlabs
parent 9ef7ec119a
commit 72b4f22ff9
36 changed files with 4 additions and 23 deletions

23
pages/common/nl.md Normal file
View File

@@ -0,0 +1,23 @@
# nl
> A utility for numbering lines, either from a file, or from standard input.
- Number non-blank lines in a file:
`nl {{file}}`
- Read from standard output:
`cat {{file}} | nl {{options}} -`
- Number only the lines with printable text:
`nl -t {{file}}`
- Number all lines including blank lines:
`nl -b a {{file}}`
- Number only the body lines that match a basic regular expression (BRE) pattern:
`nl -b p'FooBar[0-9]' {{file}}`