240 reputation
1310
bio website
location Bangalore, India
age 27
visits member for 3 years, 1 month
seen Dec 16 '11 at 14:27

I am a graduate student at IISC Bangalore. I am interested in analysis, linear algebra, probability, and in general any interesting mathematics problem.


Nov
16
asked How to compare to floating point number in a shell script
Nov
16
revised Writing a shell script to take output of an executable and perform some calculation
edited body
Nov
16
revised Writing a shell script to take output of an executable and perform some calculation
use 'bc' to convert to a float
Nov
8
awarded  Editor
Nov
8
revised Writing a shell script to take output of an executable and perform some calculation
convert string to float through shell script
Nov
8
comment Writing a shell script to take output of an executable and perform some calculation
Thank for your reply. a.out is such that it will produce a string of digits as output. I have to convert this string into the variable 'val'. How to do this? For example, a.out is producing 12.34 as output but 12.34 is a character array and not a float. I want to convert this to float through shell script and I don't have permission to change the c code for which a.out is the executable
Nov
8
awarded  Scholar
Nov
8
accepted Returning only the portion of a line after a matching pattern
Nov
7
awarded  Student
Nov
7
comment Writing a shell script to take output of an executable and perform some calculation
Thanks for your reply. Actually, I want to know the exact "shell script" for my pseudo-code as totally unfamiliar with shell script.
Nov
7
asked Returning only the portion of a line after a matching pattern
Nov
7
asked Writing a shell script to take output of an executable and perform some calculation