I have a folder of pdf files I am reading, how can I loop through them and open them all?

link|improve this question

48% accept rate
feedback

1 Answer

up vote 4 down vote accepted

If you really want a loop

for file in *.pdf; do
    open $file
done

This will open each file in a seperate preview window. To get them all in the same window

open *.pdf

will work as well.

link|improve this answer
how can you open multiple pdfs in the same window? – user27449 May 26 '11 at 22:27
Use the second command above. If you open the sidebar, it will show the individual files. This can be done either from the menu bar, or the "View" menu. Moving you mouse over a multi-page document in the sidebar will allow you to click on the curvy arrow and display each page. You can also page down through each page of all the documents, in order. – KeithB May 26 '11 at 22:32
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.