Difference between revisions of "Bash Scripts"

From In The Wings
Jump to navigation Jump to search
 
Line 1: Line 1:
 
==University of Florida High Performance Computing Center==
 
==University of Florida High Performance Computing Center==
 
* [[lustre-server]]
 
* [[lustre-server]]
 +
==Shell Tricks==
 +
To get the name of the script sans the path:
 +
 +
SCRIPT=${0##*/}
 +
 +
* [http://linux.ucla.edu/manual/bash-2.05a/html_node/bashref_29.html#SEC29 Explanation]

Revision as of 12:23, 25 February 2008

University of Florida High Performance Computing Center

Shell Tricks

To get the name of the script sans the path:

SCRIPT=${0##*/}