[UFO Chicago] grep on a PDF

Brian Sobolak brian at planetshwoop.com
Mon Mar 17 19:30:43 PDT 2014


Hi --

I have a daily report that is delivered to me via PDF that I'd like to do
two simply operations:

 - 'wc' the whole thing to count roughly the number of lines
 - 'grep' to count the number of certain words.

I'm reasonably certain that the underlying document is parseable as it
isn't a scanned image or anything like that.

I looked around briefly for 'pdf2txt' or something similar and didn't find
it in my toolkit; I also started the gs man page before being interrupted.

Has anyone tried this?

brian

-- 


More information about the ufo mailing list