stakor
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.