Re: Illegal character ^M

2011-12-02 Thread Erwin Waterlander
nd (I am not sure how to write the bc command). echo $mean *1000 |bc I get: (standard_in) 1 : illegal character: ^M I already use the dos2unix command on my .sh file. I think it's because my variable have the ^M character (not printed with the echo command) How can i eliminate this e

Re: Illegal character ^M

2011-11-29 Thread Tim McDaniel
On Tue, 29 Nov 2011, frenco wrote: I have a variable that is a float value. When I print it with the echo command i get: 0.495959 ... I think it's because my variable have the ^M character (not printed with the echo command) You might try echo "[$the_variable_name]" The quoting is signifi

Illegal character ^M

2011-11-29 Thread frenco
he bc command). echo $mean *1000 |bc I get: (standard_in) 1 : illegal character: ^M I already use the dos2unix command on my .sh file. I think it's because my variable have the ^M character (not printed with the echo command) How can i eliminate this error? I already try a lot of things but I