bash script choice menu from csv file
Hi,
I don't have a lot experience in linux but 2 days ago I wrote my first script.
The script starts first a program I wrote earlier that collects specific data from 3 online csv files and write a summary csv file called /Tribalwars/request.csv . The seperator used is ;
the csv file looks like this but can be any number of rows (but not to many mostly 3 - 5)
Title1;tile2;...;title15;
B1;B2;...;B15
C1;C2;...;C15
D1;D2;...;D15
Now the next part of the script, and that is what I want to change, asks me to manually input some data I have to copy paste from the csv file just created.
I mean if i choose to continue to do my calculations for city 2, I need to copy-paste C1 for the first variable 'cityname' , copy-paste c2 for the second variable 'xxx',copy-paste C3 for the third variable 'yyy',copy-paste C15 for the fourth variable 'points'
Then it starts new calculations etc, witch only these variables.
Now could it be possible to make a menu from the csv file with only the according cells on the screen and that I only have to choose a row from the menu?
Thank you for reading all this.
|