W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2002

Tidying lots of files at once

From: Ko-Kang Kevin Wang <kwan022@stat.auckland.ac.nz>
Date: Tue, 13 Aug 2002 04:53:25 -0400 (EDT)
To: html-tidy@w3.org
Message-ID: <Pine.SOL.4.21.0208132048360.27900-100000@stat1.stat.auckland.ac.nz>


I'm not sure if this is the right place to ask this, but...

I am marking students' lab tutorials, the first thing I need to do is to
check if anyone whose HTML file (they submitted the HTML file
electronically) fails to pass the HTML Tidy.  By that I mean it generates
at least one "error".
Say I'd like to write a DOS batch file OR a UNIX script file, so that it
runs through all the html files in one directory.  Check out the validity,
then return any files (i.e. print out the file name) that has at least 1
errors.  In other words, any files that do NOT checked with:
   0 warning, 0 errors were found!
will have its file name printed on screen.  I am not worried about the "0
warning" section, only the "0 errors" (well, any files that do not produce
"0 errors").

I'm not sure how to write such a file, either is DOS or UNIX.  In fact I
would really appreciate it if one can quickly come up with a solution and
send it to me :-)



Ko-Kang Kevin Wang
Postgraduate PGDipSci Student
Department of Statistics
University of Auckland
New Zealand
Homepage: http://www.stat.auckland.ac.nz/~kwan022
Received on Tuesday, 10 September 2002 14:56:16 UTC

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