On Sun, Jan 13, 2002 at 11:18:39AM +0530, Raju Mathur wrote:
> >>>>> "Suresh" == Suresh Ramasubramanian <[EMAIL PROTECTED]> writes:
>
> Suresh> [Linux One Stanza Tip] From : <[EMAIL PROTECTED]> LOST
> Suresh> #139 -**< Sub : Line numbering your programs (#1) >**-
> Suresh> Want a listing of your program with line numbers ? Try:
> Suresh> nl -ba my_prog.c > my_prog.no.c info or man nl for further
> Suresh> details ...
>
> How about just cat -n ?
>
---end quoted text---
Binand has written a script (lgrep) which searches through the
LOST database and outputs all LOSTS matching a search-pattern.
The output of "lgrep -n numbering" are as follows:
Lost numbers that matched the search pattern "numbering":
139 140 152 154 155
There is only one method left out (using sed). I will include
it with the next LOST release.
Bish
--
:
####[ Linux One Stanza Tip (LOST) ]###########################
Sub : Line numbering your programs (#3) LOST #152
Want a listing of your program with line numbers ?
Use `cat -n my-file' to print my-file with line numbers.
This is specially useful when you want the output sent to
another file or printer [ e.g. cat -n test.c | lpr ]
####<[EMAIL PROTECTED]>#######################################
:
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help