LINENO

suggest change

Outputs the line number in the current script. Mostly useful when debugging scripts.

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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Internal variables:
*
*
* HOME
* etc...
*
*
*
* PWD
* IFS
*
* OLDPWD
* PATH
* OSTYPE
* PPID
* EDITOR
*
* RANDOM
* SHLVL
* LINENO
* GROUPS
* UID

Table Of Contents