Guest User

Untitled

a guest
Oct 22nd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. sudo find / | grep -e '.pdf^' >> pdfs.txt
  2.  
  3. IFS=$'n' count=0; # IFS for there are files with spaces in the filename
  4. for line in $(cat pdfs.txt); # for each path
  5. do
  6. count=$((count + 1)); # updates the counter
  7. echo $line $'n' > $count.txt; # puts the file path in a file with the $count name
  8. pdf-parser -f $line >> $count.txt; # puts also the result of the analysis of this file
  9. done # repeats
Add Comment
Please, Sign In to add comment