Is there any variable in bash that contains the name of the .sh file executed? The line number would be great too.
I want to use it in error messages such as:
You just need to
echo $LINENO echo $(basename $0)