Skip to content

Instantly share code, notes, and snippets.

@bdunnette
Created February 9, 2017 19:40
Show Gist options
  • Save bdunnette/d5163616d9b2cca7608b5f12b9af1626 to your computer and use it in GitHub Desktop.
Save bdunnette/d5163616d9b2cca7608b5f12b9af1626 to your computer and use it in GitHub Desktop.
echo "Using $1 for output..."
for s in *.pdf
do
i="${s%.*}"
printf "# $i\n\n" >> $1
echo $s
pdftotext $s - >> $1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment