Simple command is:
sed -n '/begin/,/end/p' input.txt
Note: the search string "begin" and the search string "end" must be on separate lines.

Technical notes, and other ideas.
Simple command is:
sed -n '/begin/,/end/p' input.txt
Note: the search string "begin" and the search string "end" must be on separate lines.
You must be logged in to post a comment.
egrep -i “8HMJVT|8HMRGR” /logs/webhalwCluster/* > research.txt
sed -n ‘/ImmigrationUpdate : Request :/,/<\/CruiseLineRequest>/p’ SystemOut.log
sed -n ‘/ImmigrationUpdate : Response :/,/<\/CruiseLineResponse>/p’ SystemOut.log