0

How to get line number of the bash script on run time?

  • Variable $LINENO has the line number of the bash script.
  • We can call it in any line.
  • It wisely helpful in debugging and logging purpose.
ethan
asked Jun 3, 2024
edited
Your Answer
||||
 
100:0