[ale] HOW2 search for text in a "PDF" file ?
Geoffrey
esoteric at 3times25.net
Wed Aug 31 13:23:03 EDT 2005
Courtney Thomas wrote:
> I can open the pdf files using xpdf, but what I need to do, [sorry for
> the opaque description], is to search a DIR of pdf files, printing names
> of those containing specified text.
>
> I can mount the CD of course but the 'controlling' files are *.exe...so
> all I can do is search the pdf files, hopefully, since the menus, etc
> are MS formats.
What about something like:
for fn in pdf/*.pdf; do
pdftotxt $fn - |grep "$textyourelookingfor" >/dev/null &&
echo $fn contains $textyourelookingfor
done
--
Until later, Geoffrey
More information about the Ale
mailing list