[wplug] tidy bash script
ARiley at edgarsnyder.com
ARiley at edgarsnyder.com
Thu Jul 22 12:12:42 EDT 2004
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
More information about the wplug
mailing list