View Single Post
Old 01-28-2011, 08:51 AM  
acctman
Confirmed User
 
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
Quote:
Originally Posted by fris View Post
Code:
[chris@jumbo ~]$ cat test.html
<a href="http://www.domain.com" title="Free Shipping HD7-Case001">
link</a>
<a href="http://www.domain.com" title="Free Shipping HD2-Case001">link</a>
<a href="http://www.domain.com" title="Free Shipping HD3-Case001">link</a>
<a href="http://www.domain.com" title="Free Shipping HD7-Case009">link</a>
<a href="http://www.domain.com" title="Free Shipping HD7-Case002">link</a>
Code:
[chris@jumbo ~]$ cat test.html | tr '"' '\n' | grep "^Free Shipping " | cut -d ' ' -f 3
HD7-Case001
HD2-Case001
HD3-Case001
HD7-Case009
HD7-Case002
thanks... everything worked out this morning i had an extra character that I missed typed.
acctman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote