Difference between revisions of "Bash Scripts"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
SCRIPT=${0##*/} | SCRIPT=${0##*/} | ||
+ | ==Tar Tricks== | ||
+ | Copy files from one location to another using tar: | ||
+ | |||
+ | tar cf - . | (cd /somewhere ; tar xvfBp -) |
Latest revision as of 16:21, 15 February 2017
University of Florida High Performance Computing Center
Shell Tricks
To get the name of the script sans the path: Explanation
SCRIPT=${0##*/}
Tar Tricks
Copy files from one location to another using tar:
tar cf - . | (cd /somewhere ; tar xvfBp -)