add scripts
This commit is contained in:
parent
b26b361ebd
commit
14ad3c7749
3 changed files with 20 additions and 0 deletions
9
modules/home/scripts/scripts/compress.sh
Normal file
9
modules/home/scripts/scripts/compress.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if (( $# == 1 )) then
|
||||
echo -ne "Archive name: "
|
||||
read name
|
||||
tar -cvzf "$name.tar.gz" $1
|
||||
else
|
||||
echo "Wrong number of arguments..."
|
||||
fi
|
6
modules/home/scripts/scripts/extract.sh
Normal file
6
modules/home/scripts/scripts/extract.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
for i in "$@" ; do
|
||||
tar -xvzf $i
|
||||
break
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue