Difference between revisions of "Bash Scripts"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
* [[lustre-server]] | * [[lustre-server]] | ||
==Shell Tricks== | ==Shell Tricks== | ||
− | To get the name of the script sans the path: | + | To get the name of the script sans the path: [http://linux.ucla.edu/manual/bash-2.05a/html_node/bashref_29.html#SEC29 Explanation] |
SCRIPT=${0##*/} | SCRIPT=${0##*/} | ||
− | |||
− |
Revision as of 11:24, 25 February 2008
University of Florida High Performance Computing Center
Shell Tricks
To get the name of the script sans the path: Explanation
SCRIPT=${0##*/}