add scripts

This commit is contained in:
Frost-Phoenix 2023-11-14 15:42:16 +01:00
parent b26b361ebd
commit 14ad3c7749
3 changed files with 20 additions and 0 deletions

View 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

View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
for i in "$@" ; do
tar -xvzf $i
break
done