Created
September 24, 2012 14:05
-
-
Save waynegraham/3776110 to your computer and use it in GitHub Desktop.
Convert directory of HTML files to XHTML in tidy
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
#! /usr/bin/env bash | |
FILES=./*.html | |
for f in $(find . -iname '*.html') | |
do | |
echo "Processing $f..." | |
`tidy -asxhtml -indent -clean -modify $f` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment