obtaining a line number in ksh programming

Hi People,

how do i obtain the line number of a ksh shell script that i am working on For example in C,when u key in __LINE__ will return u the current line number of the src code.

regards
wilson

Did you try the man pages of ksh ?

       LINENO The  line  number  of  the function or shell script that is cur-
              rently being executed.