Skip to content

Instantly share code, notes, and snippets.

@smeghead
Created April 4, 2011 12:35
Show Gist options
  • Save smeghead/901559 to your computer and use it in GitHub Desktop.
Save smeghead/901559 to your computer and use it in GitHub Desktop.
bash function retrieve fullpath.
fullpath() {
echo $(cd $(dirname $1);pwd;cd - >/dev/null)/$(basename $1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment