nl - number lines of files


SUBMITTED BY: Guest

DATE: June 6, 2014, 9:03 a.m.

FORMAT: Text only

SIZE: 1.9 kB

HITS: 3308

  1. NAME
  2. nl - number lines of files
  3. SYNOPSIS
  4. nl [OPTION]... [FILE]...
  5. DESCRIPTION
  6. Write each FILE to standard output, with line numbers added. With no FILE, or when FILE is -, read standard input.
  7. Mandatory arguments to long options are mandatory for short options too.
  8. -b, --body-numbering=STYLE
  9. use STYLE for numbering body lines
  10. -d, --section-delimiter=CC
  11. use CC for separating logical pages
  12. -f, --footer-numbering=STYLE
  13. use STYLE for numbering footer lines
  14. -h, --header-numbering=STYLE
  15. use STYLE for numbering header lines
  16. -i, --page-increment=NUMBER
  17. line number increment at each line
  18. -l, --join-blank-lines=NUMBER
  19. group of NUMBER empty lines counted as one
  20. -n, --number-format=FORMAT
  21. insert line numbers according to FORMAT
  22. -p, --no-renumber
  23. do not reset line numbers at logical pages
  24. -s, --number-separator=STRING
  25. add STRING after (possible) line number
  26. -v, --first-page=NUMBER
  27. first line number on each logical page
  28. -w, --number-width=NUMBER
  29. use NUMBER columns for line numbers
  30. --help
  31. display this help and exit
  32. --version
  33. output version information and exit
  34. By default, selects -v1 -i1 -l1 -sTAB -w6 -nrn -hn -bt -fn. CC are two delimiter characters for separating logical pages, a missing second character implies :. Type \\ for \. STYLE is one of:
  35. a
  36. number all lines
  37. t
  38. number only nonempty lines
  39. n
  40. number no lines
  41. pREGEXP
  42. number only lines that contain a match for REGEXP
  43. FORMAT is one of:
  44. ln
  45. left justified, no leading zeros
  46. rn
  47. right justified, no leading zeros
  48. rz
  49. right justified, leading zeros
  50. AUTHOR
  51. Written by Scott Bartram and David MacKenzie.

comments powered by Disqus