Yo tampoco puedo con \n, pero intenta esto en bash:
cat archivo.txt|sed 's/CR100/\<ctrl-j>/g'
donde dice <ctrl-j> presionas la tecla ctrl + tecla J.
El mi�, 08-05-2002 a las 18:42, Diego Sotes Acedo escribi�:
> Quiero reemplazar en un fichero cierta cadena de caracteres "CR100", por un
> salto de linea, estoy probando con el sed la siguiente orden
>
> cat archivo.txt|sed 's/CR100/\n/g'
>
> pero se empenya siempre en ignorar las contrabarras, y siempre me reemplaza
> por
> una "n". Que estoy haciendo mal?
>
> Gracias
>
> Diego
>
> --
> ****************************************************************************
> * ("`-''-/").___..--''"`-._ Diego Sotes Acedo *
> * `6_ 6 ) `-. ( ).`-.__.`) mailto:[EMAIL PROTECTED] *
> * (_Y_.)' ._ ) `._ `. ``-..-' http://www.geocities.com/dsotes *
> * _..`--'_..-_/ /--'_.' ,' [ En este correo se han omitido ]*
> * (il),-'' (li),' ((!.-' [ intencionadamente acentos y enyes ]*
> ***** es o no arte electronico o digital? **********************************
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]