Versione 1 del 2011-09-29 21:26:38

Nascondi questo messaggio
Italiano English
Modifica History Actions

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'