sed 's/Ctr-VCtrl-M//' {file} > {outfile}
or, in vi
:%s/Ctrl-VCtrl-M//g
Bill
> -----Original Message-----
> From: Kiran Kumar M [mailto:[EMAIL PROTECTED]]
> Sent: 13 February 2001 12:48
> To: '[EMAIL PROTECTED]'
> Subject: Conversion Line-feed or carriage-return!!!
>
>
>
> Hi,
>
> I have a file with characters might be carriage returns. The
> file looks
> like the following (I opened it in vi)
>
> ^M ^Maaaa
> ^M ^Mbbbb
> ^M ^Mcccc
>
> I want to convert to
>
> aaaa
> bbbb
> cccc
>
> I want to omit the extra characters..
>
> Thanks,
> Kiran
>
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list