10 lines
201 B
Bash
Executable file
10 lines
201 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if (( $# == 1 )) then
|
|
# echo -ne "Archive name: "
|
|
# read name
|
|
# tar -cvzf "$name.tar.gz" $1
|
|
tar -cvzf "$1.tar.gz" $1
|
|
else
|
|
echo "Wrong number of arguments..."
|
|
fi |