comment one line and append a new one after it 05/09/202005/09/2020 nickollas Sed echo -e "abc\ndef" | sed '/^abc.*/s/^/# /; //a newLine' Share this:ShareEmailPrintFacebookWhatsAppLike Loading... Related