Validate a list of Web pages with Tidy, on the command line

lwp-request -o links <a href="file:///C:/some_page_from_google.htm" >file:///C:/some_page_from_google.htm</a> | grep -P "As*http://w*.mydomain" | perl -pe "m#As*(.*)#; $_=qx{lwp-request $1|tidy -e}; $_ = qq{

- Tidy report for:
$1

$_};"

source

Leave a Reply