LINENO

輸出當前指令碼中的行號。在除錯指令碼時非常有用。

#!/bin/bash
# this is line 2
echo something  # this is line 3
echo $LINENO # Will output 4