Skip to content

Instantly share code, notes, and snippets.

@cpaulbond
Created June 15, 2016 15:25
Show Gist options
  • Save cpaulbond/072c07dc4548aad575d7cdf83e23d5c8 to your computer and use it in GitHub Desktop.
Save cpaulbond/072c07dc4548aad575d7cdf83e23d5c8 to your computer and use it in GitHub Desktop.
Strip all the path from a variable in bash.
#!/bin/sh
#>> Strip all the path from a variable in bash.
echo ${0##*/}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment