Find bash script location

Standard

This can be useful if you need to cd to the script location from within crontab. cd to the script location from within the script itself !

For the relative path (i.e. the direct equivalent of Windows’ 

):

[/crayon]
For the absolute, normalized path:

[/crayon]

496 total views, 0 views today