From 2d88c0ea18326835e629c957512018140bcf1d1d Mon Sep 17 00:00:00 2001 From: not_mine <not_mine@mail.mail> Date: Sun, 14 Jan 2024 23:17:50 +0000 Subject: [PATCH] Upload files to '' --- zip.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 zip.sh diff --git a/zip.sh b/zip.sh new file mode 100644 index 0000000..701076d --- /dev/null +++ b/zip.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Compress the input file repeatedly until it reaches 1 byte +IN="$1" +while [ $(wc -c "$IN" | cut -d ' ' -f 1) != "1" ]; do + zip "${IN}.zip" "$IN" + IN="${IN}.zip" +done