# Search between two XML nodes ❯ sed -n 's/.*<email-address>\(.*\)<\/email-address>.*/\1/p' file.xml # Search between two strings (START and END) ❯ sed -n 's/.*START\(.*\)END.*/\1/p' file.txt