Skip to content

Instantly share code, notes, and snippets.

@thehandsomezebra
Created July 16, 2022 00:51
Show Gist options
  • Save thehandsomezebra/f21326fe22a30df24b848783de31afdb to your computer and use it in GitHub Desktop.
Save thehandsomezebra/f21326fe22a30df24b848783de31afdb to your computer and use it in GitHub Desktop.
Testing bash with echoing things...
echo
echo "# arguments called with ----> ${@} "
echo "# \$1 ----------------------> $1 "
echo "# \$2 ----------------------> $2 "
echo "# path to me ---------------> ${0} "
echo "# parent path --------------> ${0%/*} "
echo "# my name ------------------> ${0##*/} "
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment