3 thoughts on “Manipulating PDF files

  1. I am surprised at your awk idiom. You could do without calling grep using something like this :-
    awk ‘/Pages: / {print $2}’
    instead of
    grep Pages: | awk ‘{print $2}’

    • The reason’s quite simple, actually—I’m still learning. I simply didn’t know how to use awk effectively. In part, I suppose this is because grep is such a simple function to understand and master, while awk is like an entire programming language rolled into one command. It’s going to take some (more) time to learn all that it can do.

      Thanks for pointing that out. I’ve updated the post. You just power-leveled me. :)

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