perl -ne 'printf "%4d $_", $.'
For counting words, characters and lines there's also a standard tool called wc.
In reply to Re: Display Line Numbers
by calin
in thread Display Line Numbers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |