title: Run a terminal command recursively for all files in a folder
body: <p>I am working on a problem that requires me to extract text from a pdf. I am using pdfbox in order to do so. So, I run this command in the terminal (linux ubuntu): </p>
  
  <pre><code>java -jar pdfbox-app-1.8.7.jar ExtractText [path leading to file here]
  </code></pre>
  
  <p>and everything works. However, I want to do this recursively for thousands of files in a particular directory, so I don't have to manually plug in the pdf path every time. I would appreciate any solution that's either from the terminal or a script. </p>