processing a large number of files

Toby Fisher toby at tjfisher.co.uk
Tue Dec 10 22:20:55 EST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

Well, you could try something like:

ls |grep pdf|pdftotext

But not having this program, I can't test it.

Good luck.

- -- 
Toby Fisher	Email: toby at tjfisher.co.uk
Tel.: +44(0)1480 417272	Mobile: +44(0)7974 363239
ICQ: #61744808
   Please avoid sending me Word or PowerPoint attachments.
   See http://www.fsf.org/philosophy/no-word-attachments.html

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQE99q8eKl9qIwuqk+IRAmImAKCKKAen4AWGCSZKYik66KCWBplrygCfUwOY
BrSf6US5AMpgMJ5uYpR6Ch0=
=ruLy
-----END PGP SIGNATURE-----





More information about the Speakup mailing list