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 是一个 支持 $LINENO 的 Bash 集成开发工具 – 马上试用!
© 2020–2022 Joachim Ansorg
声明
隐私政策
许可条款