Re: tidy multiple files on Win/DOS

* manuel razzari [Wed, 19/11/2003 at 12:43 -0300]
> 
> Hello. I need to run HTML Tidy on multiple files (even better, multiple
> folders within a specified folder). I'm on a Win2000 IIS box.
> 
> I've Googled a bit, I've found the following which didn't work:
> 
> 1. HTML Trim
> http://htmltrim.sf.net
> Windows GUI to tidy, supposedly stable and handles multiple files (not
> subfolders); but doesn't seem to be parsing (or even loading) all the files,
> and I get 'buffer overrun' if I try to select too many HTML files at once.
> 
> 2. Tidy UI
> http://users.rcn.com/creitzel/tidy.html#tidyui
> Can't handle multiple files. (and unhelpful Tidy-config interface, btw)
> 
> 3. DOS batch file
> Suggested at the Tidy list http://tinyurl.com/vkhn
> and should do it's job well but didn't work for me. (no output/error)
> 
> **
> The solution I'm looking for is: "take this folder, take this tidy.config
> file, and run over all html files". Shouldn't be simple?
> 
> Any help? ideas? Thanks!

Did you try cygwin (http://www.cygwin.com). There is a tidy package and
a real shell language (a Unix like indeed).
Something like :

cd thisdirectory
for file in *.html
do
  tidy -config thisconfigfile $file
  cat tmp.err >> errorfile
done

Jany

Received on Wednesday, 19 November 2003 11:35:10 UTC