Created
June 15, 2016 15:25
-
-
Save cpaulbond/072c07dc4548aad575d7cdf83e23d5c8 to your computer and use it in GitHub Desktop.
Strip all the path from a variable in bash.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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