SedSubstituteMultipleLines

Substitute multiple lines using sed

echo -e "1\n2\n3"

substitute lines one and two with the word "hello"

echo -e "1\n2\n3" | sed -e '/1/,/2/c hello'
l'ultima modifica รจ del 2011-09-29 21:26:38, fatta da ClauzClauz