is there a way to grep thru *.pdf
hey guys, I have a directory with 20+ pdf files and I need to find info within 1 or more of them. the info will contain a specific string, let's say aBcDeFg. I know
[code\] grep -isnr aBcDeFg *.pdf [code] won't work. is there something that will grep thru a bunch of pdf files? thanks! tabby |
maybe strings can help ?
|
is there a way to grep thru *.pdf
Could it be ok to convert them first to text ?
|
Quote:
Code:
for file in /pdf/path/*.pdf; do pdftotext "$file"; done Code:
for file in /pdf/path/*.txt; do grep aBcDeFg "$file"; done |
TBOne thanks for your help! i'll give it a try...
and thanks for the code tags, I always forget them, i'll put them on a sticky... tabby |
yep, that worked, took a little while to convert them, thanks
tabby |
All times are GMT -5. The time now is 10:06 AM. |