Browse Source

[nb] Edit: cli_commands.md

master
rdrew 4 months ago
parent
commit
5a08c52a02
  1. 35
      cli_commands.md

35
cli_commands.md

@ -43,6 +43,7 @@
# Rename files matching a pattern, verbose output shows what changed # Rename files matching a pattern, verbose output shows what changed
rename 's/livero/lives/g' **/*.* -v rename 's/livero/lives/g' **/*.* -v
<<<<<<< HEAD
--- ---
## Torrents ## Torrents
@ -123,3 +124,37 @@
--audio-channels 1 \ --audio-channels 1 \
--output-dir "/data/split" --output-dir "/data/split"
-vv -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)

Loading…
Cancel
Save