Created
October 13, 2018 15:47
-
-
Save pablorsk/1be720660e0f09299a2382a478628426 to your computer and use it in GitHub Desktop.
Convert all pdf to text file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Recorre todos los archivos .pdf del directorio actual y genera el .txt correspondiente | |
# | |
for file in ./*.pdf | |
do | |
echo "Converting $file to $file.txt" | |
pdftotext -layout "$file" "$file.txt" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment