I Have a csv file. It has multiple columns. I want to develop a shell script which prompts the use for a numerical value, find the closest match in the csv and print the header of the column. For example
Apple orange grape berry 1 1.3 1.9 0.4 1.756 2 2.1. 3.3 6.6 0.964 3 0.444 1.364 1.1 3.6
If the user input is 3.4, then the closest value is 3.3 and the output should be " This is Orange"
Any thoughts on how can I accomplish this. (FYI - CSV is pretty large file)