LINENO

$LINENO contains the line number, which is currently being executed.

Examples

1
2
# prints line 2, this comment is line 1
echo "line $LINENO"
BashSupport Pro is a Bash IDE with support for $LINENO – try it now!
© 2020–2022 Joachim Ansorg
Imprint
Privacy Policy
Legal