I am working on a batch script that produces the deployment shell script according to my input, and I found my generated shell script has EOL \r\n
, so I need to add a procedure to convert this file to use \n
. I was looking for a solution in native batch but failed, so now I am trying to do it in other approaches.
The input is a typical shell script of commands with \r\n
as EOL.
The output should be the same shell script with \n
as EOL.
Any method that can be done in Windows environment will be appreciated.