First commit

main
Nikurasu 1 year ago
commit e98f446423
  1. 15
      ZipAllFoldersInDir/justZipIt.sh
  2. 3
      ZipAllFoldersInDir/readme.md
  3. 1
      readme.md

@ -0,0 +1,15 @@
#/bin/bash
compressionlevel=5
while getopts l:h options
do
case $options in
l) compressionlevel="$OPTARG";;
h) printf "\nLittle Bash script for converting all sub-folders of a folder\n\nUsage:\n.justZipIt.sh (or your alias) [-l compression level]\n\nStandard values:\ncompression level: 5\n\n"
exit 2;;
esac
done
for filename in */
do
zip -$compressionlevel -r ${filename::-1}.zip $filename
done

@ -0,0 +1,3 @@
# ZipAllFoldersInDir
This helpfull script zips all folders of a directory

@ -0,0 +1 @@
# Useful bash scripts from Nikurasu
Loading…
Cancel
Save