linux - Trying to output the page counts of a large number of PDF's to a log file -
linux - Trying to output the page counts of a large number of PDF's to a log file -
i have 1,550 .pdf files want find page counts for.
i used command ls -q | grep \.pdf > ../lslog.log
output file names extension .pdf
output .log file double quotes around them. opened lslog.log file in gedit , replaced "
(double quotes) '
(apostrophe) can utilize files contain parentheses in final command.
when utilize command exiftool -"*count*"
(which outputs exifdata of selected file contains word "count") on single file, example, exiftool -"*count*" 'examplepdf(withparantheses).pdf'
like, "page count: 512" or whatever page count happens be.
however, when utilize on multiple files, example: exiftool -"*count*" 'examplepdf(withparantheses).pdf' 'anotherexamplepdf.pdf'
file not found: examplepdf(withparantheses).pdf, ======== anotherexamplepdf.pdf page count : 362 1 image files read 1 files not read
so basically, i'm able read lastly file, not first one. pattern continues add together more files. it's able find file , page count of lastly file, not other files.
do need input multiple files differently? i'm using comma right separate files, without comma same result. exiftool
take multiple files?
i don't know why you're getting behaviour you're getting, looks me you're doing can collapsed 1 line:
exiftool -"*count*" *.pdf
my output bunch of pdfs had around this
======== 86a103ew00.pdf page count : 494 ======== dset3.5_reportable_items_linux.pdf page count : 70 ======== dsview 4 v4.1.0.36.pdf page count : 7 ======== dsview-release-notes-v4.1.0.77 (1).pdf page count : 7 ======== dsview-release-notes-v4.1.0.77.pdf page count : 7
linux bash pdf exiftool
Comments
Post a Comment