I am trying to output a string that contains everything between two words of a string:
input:
\"Here is a String\"
output:
You can use \1 (refer to http://www.grymoire.com/Unix/Sed.html#uh-4):
\1
echo "Hello is a String" | sed 's/Hello\(.*\)String/\1/g'
The contents that is inside the brackets will be stored as \1.