diff options
Diffstat (limited to '')
-rwxr-xr-x | bin/tgz | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/tgz b/bin/tgz new file mode 100755 index 0000000..7b8d05e --- /dev/null +++ b/bin/tgz @@ -0,0 +1,12 @@ +#!/bin/sh + +name=$1 + +shift + +if [[ -z "${name}" ]]; then + echo "usage: $0 [name] [files]" + exit 1 +fi + +tar czfv "${name}.tgz" "$@" |