Add 'nl' file and show basic example

Interestingly -- to me, at least, `nl` by default will only number
non-empty lines (coreutils v8.25), whereas `cat` will show all.
pull/81/head
terminalforlife 5 years ago
parent f04907ea0d
commit a7e9bd13e1

@ -0,0 +1,7 @@
# Number lines given to `nl` via STDIN.
printf "Here\nis\nsome\nexample\ntext." | nl
# Number (all) lines given to `nl` via provided file(s).
nl -b a /path/to/file
# The above can also be achieved with `cat`, which is perhaps more portable:
cat -n /path/to/file
Loading…
Cancel
Save