I have a file which has been created using two different systems and contains both the Unix and Dos file type.
ie. line ending with \r in some cases and \r\n in the rest.
How do I effectively convert this file into a DOS file and or Unix file?
This is what I have am trying, but not able to use any of sed, tr and awk scripts:
1. Remove '\n' using tr -d '\n'
2. Replace \r' with '\r\n'
I am not finding the sed option to replace '\r' with '\r\n'.
Any help??
Thanks,
ie. line ending with \r in some cases and \r\n in the rest.
How do I effectively convert this file into a DOS file and or Unix file?
This is what I have am trying, but not able to use any of sed, tr and awk scripts:
1. Remove '\n' using tr -d '\n'
2. Replace \r' with '\r\n'
I am not finding the sed option to replace '\r' with '\r\n'.
Any help??
Thanks,