Created
May 1, 2024 02:38
-
-
Save cmpadden/f45656d2061d30e87663465753c42b81 to your computer and use it in GitHub Desktop.
Export Apple Books ePubs
This file contains hidden or 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
#!/bin/bash | |
destination="/Users/colton/Desktop/Library" | |
mkdir -p "$destination" | |
cd /Users/colton/Library/Mobile Documents/iCloud~com~apple~iBooks/Documents | |
for i in *.epub; do | |
pushd "$i" | |
zip --quiet -X0 "$destination/$i" mimetype | |
zip --quiet -rDX9 "$destination/$i" * -x "*.DS_Store" -x mimetype | |
popd | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment