- From: John Campbell <jdc.rpv@cox.net>
- Date: Sun, 23 Mar 2008 12:13:47 -0700
- To: Eric Frost <eric.frost@mp2kmag.com>
- CC: Brian Esser <esserfirst@gmail.com>, html-tidy@w3.org
Eric Frost wrote: > Hello Brian, > > Yes, but you will need shell access.. assuming it is running Linux, you should write a shell script to traverse the directories and make the changes. Here's a Windows batch file to do the same thing: > > ______________ > @ECHO OFF > cd "%1" > ECHO Processing HTML files with Tidy... > ECHO. > for /f "tokens=*" %%a in ('dir /b /s *.htm*') do tidy -i -c -q -m -c -b --quote-marks yes --drop-empty-paras yes "%%a" | ECHO File: %%a > ______________ > ( from http://discuss.fogcreek.com/CityDesk/default.asp?cmd=show&ixPost=13187&ixReplies=1 ) > > If you don't have shell access, the ISP will sometimes run it for you if you tell them exactly what you want them to do.. sometimes for a fee. > > hope this helps, Ya. The linux command is easier. find $dir -iname \*.htm\? -exec tidy -i -c -q -m -c -b --quote-marks=yes --drop-empty-paras=yes "{}" \;
Received on Sunday, 23 March 2008 19:14:27 UTC