tar/gzip shell scripts
Posted 2003-11-13 @ 17:01:27
As part of my never-ending quest to eliminate keystrokes, I wrote two simple shell scripts:
The first tars & gzips a given directory:
#!/bin/sh
tar cf - $1 | gzip - > $1.tar.gz
And second does the opposite:
#!/bin/sh
tar -zxvf $1
I named them 'tz' and 'utz', respectively, but you can call them whatever you'd like - just remember to put them in your path, and make them executable.
©2002-2010 kevin c smith