Skip to content

Instantly share code, notes, and snippets.

@sgen
Created August 13, 2018 17:25
Show Gist options
  • Save sgen/3ee61be3307a62ac9729a7b797ace443 to your computer and use it in GitHub Desktop.
Save sgen/3ee61be3307a62ac9729a7b797ace443 to your computer and use it in GitHub Desktop.
Find path of a bash script
#!/bin/bash
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
echo "$SCRIPTPATH";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment