Skip to content

Instantly share code, notes, and snippets.

@blurymind
Last active June 12, 2022 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blurymind/c6bcfa17d2143203ee631c577d61d018 to your computer and use it in GitHub Desktop.
Save blurymind/c6bcfa17d2143203ee631c577d61d018 to your computer and use it in GitHub Desktop.
foldersToCbz.sh
#!/bin/sh
# thunar folder custom action /home/fox/INSTALL/createCbzFromFolder.sh %F
# %F is full path to all selected folders
for var in "$@"
do
echo "$var"
7z a "$var".7z "$var"/*
mv "$var".7z "$var".cbz
rm -r "$var"
done
zenity --notification --text "done! Made all 7z cbz and deleted the folders."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment