I have started using bash but this script which I am working on it, is in c chell. So here is my simple problem:
set x = 0.4124\0.234
echo $x
0.4124.0.234
Same operation in Bash gives me correct result in my terminal. So there is something with my c shell that is causing this behaviour. Is there solution to this problem?
Example:
linux1% command input
Correct o/p:
0.48828125\0.48828125
But I want to save this variable using set in c shell and I am doing:
set x = `command input`
echo $x
Incorrect o/p:
0.48828125.0.48828125
Is there a way that second option (that is set x = `command input`) can yield correct output?
The "double \\" works with floating point numbers which are greater than 1 but doesn't work for numbers between 0 and 1. Try:
set x = 0.314\2.314
echo $x
0.3142.314
I think I have to accept this ouput. Is there a way I can check for second decimal in output and if found than use a backslash before one digit that is in the above case backslash before 2 to get 0.314\2.314.