[PLUG] An obscure (at least to me) useful tool
Tomas Kuchta
tomas.kuchta.lists at gmail.com
Thu May 23 16:30:39 UTC 2019
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 <russell at personaltelco.net>
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 <rshepard at appl-ecosys.com>
> 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
> > PLUG at pdxlinux.org
> > http://lists.pdxlinux.org/mailman/listinfo/plug
> >
> _______________________________________________
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list