[wplug] tidy bash script

ch ch at shot1.org
Thu Jul 22 16:02:05 EDT 2004


ARiley at edgarsnyder.com wrote:

>
>
>
>I am using HTML Tidy to clean html pages that I have downloaded locally.
>The configuration options and error file parameters are handled by a file I
>created called tidy.conf.
>
>I wrote a script that calls that file and works fine except that it can not
>traverse up and down the directories of pages - causing me to run the
>script manually in each directory.  My bash is weak.  Does anyone know how
>to descend into directories and climb back out?
>
>#!/bin/bash
>conf="-config /etc/tidy.conf"
>
>for file in *.html;
>  do tidy $conf $file
>done
>
>Aaron
>
>_______________________________________________
>wplug mailing list
>wplug at wplug.org
>http://www.wplug.org/mailman/listinfo/wplug
>  
>
find . -follow -type f -name \*.html -exec tidy -config /etc/tidy.conf {} \;

Brian





More information about the wplug mailing list