One Step Info
One step info where you can get crispy informations in all areas!
Showing posts with label
line no in vi
.
Show all posts
Showing posts with label
line no in vi
.
Show all posts
Wednesday, August 31, 2016
Display line numbers in a file
$ cat -n filename.txt
It will display line numbers on the left hand side for each line in a file
If you want to display line numbers in vi editor
$ vi +linenumber filename.txt
In command mode you just type :set nu to display line numbers
Older Posts
Home
Subscribe to:
Posts (Atom)