BASH: Output everything between two strings
Hi. im sure this sort of question is probably asked a lot, but I can't seem to find any helpful info.
I am writing a bash script. What I want is something which will search a file and output everything between two strings. e.g. if the file contains something like this:
<!--Description="this is a random example page"-->
<!--Heres some content-->
i want to put in something like: from "<!--Description=\"" to "\"-->" and get:
this is a random example page
I did try using grep, but I havent the faintest idea how to use it, and the man page didnt make it look like it was capable of this.
Thanks in advance