I run the command unix2dos <file_path>
and to make sure I opened the file but it doesn't show me ^M. can anyone tell me the reason?
I want to run some command to copy some text to another file with the windows line ending.
But the destination where I want to copy it doesn't have to install the dos2unix
package.
So I want it to convert the file to DOS at source location then copy it but when I run unix2dos
it doesn't show me ^M when opened in vi. so could anyone please tell me how can I make sure that the source is getting copied at destination with windows line endings?