Skip to content

Instantly share code, notes, and snippets.

@pablorsk
Created October 13, 2018 15:47
Show Gist options
  • Save pablorsk/1be720660e0f09299a2382a478628426 to your computer and use it in GitHub Desktop.
Save pablorsk/1be720660e0f09299a2382a478628426 to your computer and use it in GitHub Desktop.
Convert all pdf to text file
#!/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