$ echo hello | sed 's/hello/hello\'$'\nbye/'
hello
bye
$ echo hello | sed 's/hello/hello\'$'\n''bye1\'$'\nbye2/'
hello
bye1
bye2
$ sed -i '' 's/hello/hello\'$'\nbye/g' somefile.txt
martes, 11 de noviembre de 2014
Suscribirse a:
Entradas (Atom)