archive wrapper, no tar, NAME file1 file2 dest.[zip,xz,etc]
if [ $# -lt 2 ]; then
echo "Error: At least one source file/directory and a destination archive are required." >&2
echo "Use --help for usage information."
exit 1
fi
DEST="${@: -1}"
SOURCES=("${@:1:$#-1}")
lower_dest=$(echo "$DEST" | tr '[:upper:]' '[:lower:]')
echo "Creating archive '$DEST' from ${#SOURCES[@]} item(s)..."
Comment too long. Click here to view the full text.