W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2003

Re: tidy multiple files on Win/DOS

From: Jany Quintard <jany.quintard@free.fr>
Date: Wed, 19 Nov 2003 17:30:47 +0100
To: killerking@cyberjunkie.com
Cc: html-tidy@w3.org
Message-ID: <20031119163046.GD31348@figue>

* 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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC