I have a file similar to this:
<many lines of stuff>
SUMMARY:
<some lines of stuff>
END OF SUMMARY
I want to extract only material between SUMMARYand END OF SUMMARY. I suspect I can do this with sed, but I'm not sure how to do it. I know that I can change the material between these words:
sed "/SUMMARY/,/END OF SUMMARY/ s/replace/with/" fileName
(But not sure how easy it is to extract this material).
I am Bash on Solaris.
source
share