Posted By

noah on 11/13/07


command commandline pipe validation perl work cygwin tidy scraping one-liners

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


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

 / Published in: Bash

  1. lwp-request -o links file:///C:/some_page_from_google.htm | grep -P "A\s*http://\w*.mydomain" | perl -pe "m#A\s*(.*)#; $_=qx{lwp-request $1|tidy -e}; $_ = qq{\n\n\t- Tidy report for: \n\t\t$1\n\n$_};"

Report this snippet  

You need to login to post a comment.