diff --git a/cli_commands.md b/cli_commands.md index efaab05..4ad4e62 100644 --- a/cli_commands.md +++ b/cli_commands.md @@ -43,6 +43,7 @@ # Rename files matching a pattern, verbose output shows what changed rename 's/livero/lives/g' **/*.* -v +<<<<<<< HEAD --- ## Torrents @@ -123,3 +124,37 @@ --audio-channels 1 \ --output-dir "/data/split" -vv +======= +# check current dpi +for f in *.pdf *.PDF; do + echo "=== Images in: $f ===" + pdfimages -list "$f" + echo "" +done +# Creates (or overwrites) images_list.txt in the current directory +for f in *.pdf *.PDF; do + if [ -f "$f" ]; then + echo "=== Images in: $f ===" >> images_list.txt + pdfimages -list "$f" >> images_list.txt + echo "" >> images_list.txt + fi +done +# scan for ccitt encoding +for f in *.pdf *.PDF; do + [ -f "$f" ] || continue + if pdfimages -list "$f" 2>/dev/null | grep -q " ccitt "; then + echo "$f uses CCITT" + fi +done + +# Large file transfer to gdrive +rclone copy file_location file_destination \ + --progress \ + --transfers 4 \ + --checkers 8 \ + --retries 10 \ + --low-level-retries 20 \ + --drive-chunk-size 64M \ + --log-file rclone.log \ + --log-level INFO +>>>>>>> f99d1ed ([nb] Edit: cli_commands.md)