less -N fileName Will display the line numbers too.
Vim and emacs have some ways of doing it too. -T On Thu, May 23, 2019, 01:57 Russell Senior <[email protected]> wrote: > I've used the -n option to cat recently to get line numbers. E.g.: > > cat -n README.txt > > I don't remember using nl before. > > On Wed, May 22, 2019 at 11:15 AM Rich Shepard <[email protected]> > wrote: > > > Those of you who are professional system/network admins probably know > about > > the little tool, 'nl,' that numbers lines in text files > > <https://ss64.com/bash/nl.html>. For non-professionals like me it's a > > great > > find as I work regularly with text files and it solved a problem more > > quickly than by using gawk. > > > > Perhaps others will find this useful on occasion. > > > > Regards, > > > > Rich > > _______________________________________________ > > PLUG mailing list > > [email protected] > > http://lists.pdxlinux.org/mailman/listinfo/plug > > > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug > _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
