How to find script file name in a Bash script?
Sometime we want to know the file name of the script which we are executing in bash scripting. One such scenarios is use the file name for logging purpose, without hardcoding the name of the script file. In the below example, readlink prints out the value of a symbolic link. [...]