PDF inventory software

illoai at gmail.com illoai at gmail.com
Tue Jun 9 17:41:18 UTC 2009

2009/6/9 Daniel Underwood <djuatdelta at gmail.com>:
> I'm trying to convert all PDF files in a directory to text using
> "pdftotext".  I tried the following command:
> $ find *.pdf | xargs -0 pdftotext
> Error: Couldn't open file 'Ross-JAMA-2007 (Prostate Screening Strategies).pdf
> Sanda-JAMA-2009 (Prostate Cancer Treatment).pdf
> '
> Why is this not working?

since xargs is expecting NUL for seperators
you need th' -print0 primary with find


More information about the freebsd-questions mailing list