GREP consigue todo entre dos cuerdas
echo "Here is a string" | grep -o -P '(?<=Here).*(?=string)'
Tiago F2
echo "Here is a string" | grep -o -P '(?<=Here).*(?=string)'