Created
March 20, 2024 15:25
-
-
Save ychaouche/42fe72f0fa20000659d66875ecf33163 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
archive.create.tgz is a function | |
archive.create.tgz () | |
{ | |
local dir="$1"; | |
local archivename="$dir.tgz"; | |
shift; | |
echo tar --exclude=*~ $@ -cvzf $archivename $dir; | |
tar --exclude=*~ $@ -cvzf $archivename $dir | |
} | |
archive.create.zip is a function | |
archive.create.zip () | |
{ | |
local dir="$1"; | |
local archivename="$dir.zip"; | |
shift; | |
zip "$archivename" -r "$dir" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment