Skip to content

Instantly share code, notes, and snippets.

@feuyeux
Last active September 28, 2016 02:11
Show Gist options
  • Save feuyeux/a90beeba6c4924c4c7a2761e1bbd11bb to your computer and use it in GitHub Desktop.
Save feuyeux/a90beeba6c4924c4c7a2761e1bbd11bb to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
executingPath=$(pwd)
scriptPath=$(cd $(dirname $0);pwd)
scriptParentPath=$(cd $(dirname $0);cd ..; pwd)
scriptName=$(basename $0)

line=$(printf "%-60s")
echo "${line// /#}"
echo "Executing path : $executingPath"
echo "Script located path : $scriptPath"
echo "Script parent path : $scriptParentPath"
echo "Script name : $scriptName"
echo "${line// /#}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment