Last active
September 2, 2020 04:36
-
-
Save joongh/7ef63333040fd708b12a9d5717511a85 to your computer and use it in GitHub Desktop.
Paths of current bash script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo $0 | |
fullpath=$(realpath $0) | |
echo ${fullpath} | |
dirpath=$(dirname $fullpath) | |
echo ${dirpath} | |
me=$(basename $0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment