Using sed in shell/bash, so you needn’t install something else.
tag=body
sed -n "/<$tag>/,/<\/$tag>/p" file
More Related Contents:
- Sed remove tags from html file
- Bash script to convert from HTML entities to characters
- Easiest way to extract the urls from an html page using sed or awk only
- Sending HTML mail using a shell script
- Bad: [html] in html code i can’t make two form input in one row [closed]
- What is the boundary in multipart/form-data?
- Trouble with content security policy
- html5 – canvas element – Multiple layers
- vs.
- css ellipsis on second line
- What is “X-Content-Type-Options=nosniff”?
- Autocomplete off vs false?
- Wrapping text inside input type=”text” element HTML/CSS
- How to make a whole ‘div’ clickable in html and css without JavaScript? [duplicate]
- Can a span be closed using ?
- Form and file upload with htmlService and app script not working
- restrict file upload selection to specific types
- Access Control Allow Origin issue in Angular 2
- Get input type=text to look like type=password
- How can I use the CSS pseudo-element :before{ content: ” } to affect an element?
- How to display text, a dotted line then more text spanning the width of the page?
- How can I apply a border only inside a table?
- a href link for entire div in HTML/CSS
- How to change border color of textarea on :focus
- How to render svg elements with crisp edges while still keeping anti-aliasing?
- Fire onmouseover event when element is disabled
- Line Break in XML? [duplicate]
- Does JSON-LD have to be embedded?
- How put percentage width into html canvas (no css)
- display: flex not working on Internet Explorer [duplicate]