|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
echo $LINENO to display line number how to do that for functions ? shell scripting
Hello all,
Within a shell script ( linux ) echo $LINENO gives the line nubmer. Is there a way to get the name of the function that is currently called ? That is I have sth like function dinesh_p_v() { echo $LINENO echo dinesh_p_v #some stuff } function dins() { echo $LINENO echo dins #some stuff } function dinesh() { echo $LINENO echo dinesh #some stuff } This displays the line number and function name which is hardcoded. Instead I need to display the function name without hardcoding it. Is there a way to achieve this Thanks in advance, Murugesan |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > echo $LINENO to display line number how to do that for functions ? shell scripting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|