feat: pdf page script now reads dirs recursively

This commit is contained in:
2026-07-27 14:46:17 +02:00
parent 08c3d41ff2
commit c7780ea9d8
+1 -1
View File
@@ -5,7 +5,7 @@ if [[ -n $1 ]]; then
else
total=0
count=0
for file in *.pdf; do
for file in $(find . -name "*.pdf" -type f | sort -n | grep pdf); do
count_file=$(pdfinfo $file | awk '/^Pages:/ {print $2}')
echo "$count_file pages in $file"
total=$(($total + count_file))