Skip to content

Instantly share code, notes, and snippets.

@joongh
Last active September 2, 2020 04:36
Show Gist options
  • Save joongh/7ef63333040fd708b12a9d5717511a85 to your computer and use it in GitHub Desktop.
Save joongh/7ef63333040fd708b12a9d5717511a85 to your computer and use it in GitHub Desktop.
Paths of current bash script
#!/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