SyntaxFix
Write A Post
Hire A Developer
Questions
You can use sed as follows:
MY_NEW_VAR=$(echo $testVar | sed -e 's/\r//g') echo ${MY_NEW_VAR} got it
By the way, try to do a dos2unix on your data file.
dos2unix