Tips and Tricks
Keep all tips and tricks learned in one place.
Saturday, September 15, 2012
Grep in pdf file for a certain word
find . -name '*.pdf' -exec pdftotext {} - \; | grep -rn "test"
find . -name "*.pdf" -print0| while read -d $'' file; do co=$(pdftotext -q "$file" - |grep -crn "test"); if [ $co -ne 0 ]; then echo $co - "$file" ; fi ; done
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment