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
Pipe to sed -e 's/[\r\n]//g' to remove both Carriage Returns (\r) and Line Feeds (\n) from each text line.
sed -e 's/[\r\n]//g'
\r
\n