grep for pdf

grep for pdf

Post by Seeke » Sat, 29 Dec 2001 17:26:21



Is there a way to grep pdf files.
 
 
 

grep for pdf

Post by aryzh » Sat, 29 Dec 2001 23:52:59



> Is there a way to grep pdf files.

If I had a PDF file handy, I'd first try
 cat $FILE | strings | grep $SAMPLE

Even if it works, it is not 100% reliable

Regards,
Andrei

 
 
 

grep for pdf

Post by Philip Bro » Sun, 30 Dec 2001 08:11:44



>Is there a way to grep pdf files.

sure. find a pdf2txt converter, and pre-process them before the grep.

--
[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]

The word of the day is mispergitude

 
 
 

grep for pdf

Post by Roland Main » Fri, 04 Jan 2002 00:42:34



> Is there a way to grep pdf files.

xpdf (http://www.foolabs.com/xpdf/) comes with a tool called
"pdftotext".

% pdftotext mydoc.pdf /dev/stdout | grep SPARC
should be more or less what you want... :)

----

Bye,
Roland

--
  __ .  . __


  /O /==\ O\  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
 (;O/ \/ \O;) TEL +49 641 99-41370 FAX +49 641 99-41359

 
 
 

1. grep sTerm * | grep -v grep ???

in .bashrc

alias r='ps ax | grep $1 | grep -v grep'

this works from the command line but doesn't work from the bashrc.
Apparently there's a syntax problem.

...and

. filename

where can I read about this commad that is found in bash and sh
scripts?  I searched the bash and one or two other man pgs to no
avail.  Thanks gurus.

--


2. FTP issues, can not connect

3. tail | grep | grep | grep

4. Device Driver

5. How to make grep select both lines using only a single 'grep' command

6. Lightweight callback software

7. grep question New to grep

8. Reading Apricot (&other?) floppys

9. grep octal value (grep '\0145' /tmp/test) doesn't work !!

10. Bug in grep or man grep

11. lscfg | grep en and then grep lo

12. PLEASE HELP A NEWBIE: grep doesn't grep

13. grep attempts to grep in non-ascii files