in reply to Display Line Numbers

On *NIX systems, by far the easiest way would be the program called `nl`, which is part of the GNU coreutils. And for those interested, see the documentation.

Then of course nearly every GNU tool has the abillity to display line numbers, for example with `grep` and `cat` you could use the "-n" parameter to toggle the display of file numbers.

--
b10m

All code is usually tested, but rarely trusted.

Replies are listed 'Best First'.
Re: Re: Display Line Numbers
by ysth (Canon) on Jan 30, 2004 at 09:16 UTC
    Thanks for the reminder; I've seen nl before but had forgotten about it. Instead, I often use grep -vn xyzzy (or, for variety, grep -vn plugh).

    > free bird