I am new to shell script. I am sourcing a file, which is created in Windows and has carriage returns, using the source command. After I source when I append som
source
yet another solution uses tr:
tr
echo $testVar | tr -d '\r' cat myscript | tr -d '\r'
the option -d stands for delete.
-d
delete