Forrest logo
back to context overview

nl

List of commands for nl:

  • nl:tldr:1ffad nl: Read from standard output.
    $ cat ${filename} | nl ${options} -
    try on your machine
    explain this command
  • nl:tldr:6b4b1 nl: Number only the body lines that match a basic regular expression (BRE) pattern.
    $ nl -b p'FooBar[0-9]' ${filename}
    try on your machine
    explain this command
  • nl:tldr:7eea0 nl: Number all lines including blank lines.
    $ nl -b a ${filename}
    try on your machine
    explain this command
  • nl:tldr:9e6ce nl: Number non-blank lines in a file.
    $ nl ${filename}
    try on your machine
    explain this command
  • nl:tldr:a5471 nl: Number only the lines with printable text.
    $ nl -t ${filename}
    try on your machine
    explain this command
back to context overview