Pranita S wrote:
> 
> Hi,
> 
> As many of you suggested to use sed to
> get rid of carriage return ;
> sed -e "s/\r/\n/g" your_file_name >
> your_temp_file_name

the correct pattern would be
"s/\r\n/\n/g" to replace all CR-NL with just NL.
"s/\r//g" should work, but if you have a real CR
in the file that you need it might be deleted.

I'd stick with dos2unix since it fixes some other
problems too.

What editor/compiler are you using in NT?
Can it handle the NL correctly?
Then you'd only need to make the fix once,
instead of every time you do checkout and checkin.

        -Thomas



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to