#!/bin/bashsed -e 's/^foo/bar/' -e '1i foo foo foo' -e 's/foo$/baz/' <<< "foo bar baz"
Standard input is empty
foo foo foo bar bar baz
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!