Skip to content

Instantly share code, notes, and snippets.

@waynegraham
Created September 24, 2012 14:05
Show Gist options
  • Save waynegraham/3776110 to your computer and use it in GitHub Desktop.
Save waynegraham/3776110 to your computer and use it in GitHub Desktop.
Convert directory of HTML files to XHTML in tidy
#! /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