#!/bin/bashs='Text start... <field outputName="location"> ...End of text.'sed '/<field outputName="location".*>/s/.*//' <<< "$s"
Standard input is empty
Text start End of text.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!