[wplug] tidy bash script
Gentgeen
gentgeen at linuxmail.org
Fri Jul 23 15:18:30 EDT 2004
I liked your script, so then I took it one more step. This creates a
new file titled $FILENAME.html.tidied. The new file has all the errors
and messages at the top, and the tidied results at the bottom. I know
it may not be what the OP needs but I liked it and though I would share
it with "ya'll".
### Script ###
#!/bin/bash
conf="-config /home/kevin/.tidyDEEPrc"
for file in `find . -type f -name \*.html`;
do tidy $conf $file > $file.tidied 2>&1
done
### End Script ###
The config file should have
show-warnings: yes
write-back: no
and what ever else you want to have.
On Thu, 22 Jul 2004 12:32:39 -0400
Jonathan S Billings <billings at negate.org> wrote:
> ARiley at edgarsnyder.com wrote:
> > 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
>
> #!/bin/bash
> conf="-config /etc/tidy.conf"
>
> for file in `find . -type f -name \*.html`;
> do tidy $conf $file
> done
>
>
> --
> Jonathan S. Billings <billings at negate.org>
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
******************************************************************
Associate yourself with men of good quality if you esteem your own
reputation; for 'tis better to be alone then in bad company.
- George Washington, Rules of Civility
More information about the wplug
mailing list