processing a large number of files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try this.  for i in *.pdf
do
pdftotext $i
done


          HTH.
-- 
          Bill in Denver


On Tue, 10 Dec 2002, Gregory Nowak wrote:

> Hi all.
> 
> I have a large number of pdfs that I need to process into text files.
> 
> I know that if I feed file1.pdf to pdftotext, it will write file1.txt. So, I tried doing
> pdftotext *.pdf
> , but got the program's help message, instead of bash expanding the filenames, and a bunch of .txt files.
> 
> Since my bash programming is next to nothing, is there a way to do what I want without a script?
> 
> Could I somehow get bash to expand the wildcard, and feed the individual files to pdftotext for it to spit out txt files?
> 
> Thanks for any help in advance.
> 




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux