Your search query "linkto:"SedSubstituteMultipleLines"" didn't return any results. Please change some terms and refer to HelpOnSearching for more information.
(!) Consider performing a full-text search with your search terms.

Clear message
Italiano English
Edit History Actions


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'