[shell] How to remove carriage return and newline from a variable in shell script