Skip to content

Instantly share code, notes, and snippets.

@scottbw
Created October 13, 2017 16:16
Show Gist options
  • Save scottbw/5618535dcbdf4654b3420a005722adf4 to your computer and use it in GitHub Desktop.
Save scottbw/5618535dcbdf4654b3420a005722adf4 to your computer and use it in GitHub Desktop.
FILES=*.html
for f in $FILES
do
echo "Processing $f file..."
# take action on each file. $f store current file name
java -jar htmlcleaner-2.21.jar src=$f dest=$f.cleaned outputtype=htmlsimple
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment