Created
December 31, 2025 16:50
-
-
Save SuperCowProducts/fdd8401374b342cf6fe3cd26b9f07126 to your computer and use it in GitHub Desktop.
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
| cd | |
| #. .bashrc | |
| mkdir -p ~/bk/an/ | |
| export COPY_FILE="true" | |
| #. ~/Nextcloud/sh/cp/at-cp.sh | |
| # 2025-12-31T15;39;29,01;00 | |
| # S="$1" | |
| # E=0 | |
| IFS=$'\n' | |
| cd ~/Nextcloud | |
| while [ "$COPY_FILE"="true" ]; do | |
| the_current_date="$(date -Is | tr ':+' ';,' | tr -d '\n')" | |
| the_current_directory=~/bk/an/"$the_current_date" | |
| mkdir -p "$the_current_directory" | |
| echo "Saving all pdfs in $the_current_directory... ($the_current_date)" | |
| for S in $(find ~+ -name "*.pdf"); do | |
| the_current_file="${S##*/}.json" | |
| cpdf -list-annotations-json "$S" > "$the_current_directory"/"$the_current_file" | |
| echo "Saved JSON data from $S" | |
| done | |
| echo "Waiting 60 seconds before the next round..." | |
| sleep 60 | |
| done | |
| # ta | |
| # while [ "$COPY_FILE"="true" ]; do | |
| # ((E++)) | |
| # cpdf -list-annotations-json "$S" > ~/bk/an/"$E.json" | |
| # sleep 60 | |
| # echo "Copied $S at $(dt)" | |
| # done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment