Home > LaTeX, learning, Real work > Word count of a pdf in mac terminal

Word count of a pdf in mac terminal

Cheeky tip from http://hints.macworld.com/article.php?story=20051129125931187 comments for counting words in a pdf document. Very handy for working with LaTeX where you only see the full document without tags as a pdf. (I think the ps2ascii command only comes with LaTeX, actually).

In terminal, type:
ps2ascii myFile.pdf | wc -w

and you’re done.

About these ads
Categories: LaTeX, learning, Real work
  1. Fabian
    October 17, 2012 at 6:31 am | #1

    Excellent!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: