Get PDF Word Count In Linux
Quick easy way to get the word count of a pdf.
# pdfwc.sh # usage ./pdfwc.sh filename.pdf # TMPFILE=___tmpfile.tmp pdftotext $1 $TMPFILE wc $TMPFILE -w rm $TMPFILE
Quick easy way to get the word count of a pdf.
# pdfwc.sh # usage ./pdfwc.sh filename.pdf # TMPFILE=___tmpfile.tmp pdftotext $1 $TMPFILE wc $TMPFILE -w rm $TMPFILE
links for 2009-07-03 « Where Is All This Leading To? 1:09 am on July 4, 2009 Permalink |
[...] Get PDF Word Count In Linux | Development Blog (tags: pdf wordcount word count scripts cli bash) [...]
Jonas 3:50 am on July 30, 2009 Permalink |
Would probably do:
#!/bin/sh
# pdfwc.sh
# usage ./pdfwc.sh filename.pdf
#
pdftotext $1 – | wc -w
#__EOF__
instead.