Link to home
Start Free TrialLog in
Avatar of stakor
stakorFlag for United States of America

asked on

cutting a html file in two

I am trying to cut an HTML file in two, using bash. I was thinking that there would be an easy way to do this with awk. I think I am going something wrong.

I am trying to use:
cat test.html | awk '\<div class\=\"testdiv\"\>/ {print $2}'

I am looking to print everything that is under:
<div class="testdiv">

in the html file.
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial