Last active
December 15, 2015 10:39
-
-
Save RyanParsley/5247199 to your computer and use it in GitHub Desktop.
Run through a web app that removes word junk.
This file contains 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/sh | |
input="$1" | |
# %%.* strips off everything after the first . in this string | |
filename="${input%%.*}" | |
textutil -convert html "$input" -output "$filename".html | |
curl -d html="$filename".html http://wordoff.org/api/clean | |
pandoc -f html -t markdown "$filename".html -o "$filename".markdown |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment