Re: HTML Tidy Question

John Campbell <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
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 "{}" \;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.