'nl' - number lines of files - Video Man Pages

The 'nl' command adds line numbers to files or to terminal output.

+ Number non-blank lines in a file:
nl path/to/file

+ Number non-blank lines in ouptut from stdin:
command | nl
ex: seq 10 | nl

+ Number [a]ll [b]ody lines including blank lines or do [n]ot number body lines:
nl -b a path/to/file

+ Do [n]ot number [b]ody lines (essentially this suppresses the line numbers):
nl -b n path/to/file

NOTE The above command is not that different than 'cat' or 'less' except that 'nl -b n' does reserve space for where the line numbers would have been.

+ Number only the lines matching a basic regex [p]attern:
nl -b p'FooBar[0-9]' path/to/file

-OR-
nl -b p'^#' .bashrc

+ Use a specific [i]ncrement for line numbering:
nl -i NUMBER path/to/file

+ Specify the line numbering width (default = 6):
nl -w NUMBER path/to/file

+ Specify [n]umber-format as [r]ight justified with leading [z]eroes:
nl -n rz path/to/file

+ Specify [n]umber-format as [r]ight justified with [n]o leading zeroes:
nl -n rn path/to/file

+ Specify [n]umber-format as [l]eft justified with [n]o leading zeroes:
nl -n ln path/to/file

+ Use a specific string to separate line numbers from the lines (default = TAB):
nl -s ' | ' path/to/file


REFERENCED:
► https://gitlab.com/dwt1/vidman

WANT TO SUPPORT THE CHANNEL?
💰 Patreon: https://www.patreon.com/distrotube
💳 Paypal: https://www.paypal.com/donate/?hosted_button_id=MW3ZFGS8Q9JGW
🛍️ Amazon: https://amzn.to/2RotFFi
👕 Teespring: https://teespring.com/stores/distrotube

DT ON THE WEB:
🕸️ Website: http://distro.tube
📁 GitLab: https://gitlab.com/dwt1
🗨️ Mastodon: https://fosstodon.org/@distrotube
👫 Reddit: https://www.reddit.com/r/DistroTube/
📽️ Odysee: https://odysee.com/@DistroTube:2

FREE AND OPEN SOURCE SOFTWARE THAT I LIKE:
🌐 Brave Browser - https://brave.com/
📽️ Open Broadcaster Software: https://obsproject.com/
🎬 Kdenlive: https://kdenlive.org
🎨 GIMP: https://www.gimp.org/
💻 VirtualBox: https://www.virtualbox.org/
🗒️ Doom Emacs: https://github.com/hlissner/doom-emacs

Your support is very much appreciated. Thanks, guys! Receive SMS online on sms24.me

TubeReader video aggregator is a website that collects and organizes online videos from the YouTube source. Video aggregation is done for different purposes, and TubeReader take different approaches to achieve their purpose.

Our try to collect videos of high quality or interest for visitors to view; the collection may be made by editors or may be based on community votes.

Another method is to base the collection on those videos most viewed, either at the aggregator site or at various popular video hosting sites.

TubeReader site exists to allow users to collect their own sets of videos, for personal use as well as for browsing and viewing by others; TubeReader can develop online communities around video sharing.

Our site allow users to create a personalized video playlist, for personal use as well as for browsing and viewing by others.

@YouTubeReaderBot allows you to subscribe to Youtube channels.

By using @YouTubeReaderBot Bot you agree with YouTube Terms of Service.

Use the @YouTubeReaderBot telegram bot to be the first to be notified when new videos are released on your favorite channels.

Look for new videos or channels and share them with your friends.

You can start using our bot from this video, subscribe now to 'nl' - number lines of files - Video Man Pages

What is YouTube?

YouTube is a free video sharing website that makes it easy to watch online videos. You can even create and upload your own videos to share with others. Originally created in 2005, YouTube is now one of the most popular sites on the Web, with visitors watching around 6 billion hours of video every month.