I need to parse a csv file and store the value in a variable. Below is the sample csv file
And below is the ./script.sh
#!/bin/bash
D="";
P="";
./xyz --project "$P" --displayname "$D"
For example if we consider the first line:
When i run the script like
./script.sh /home/project.csv
it should store the values: 10V nmos and pmos for MA
into $D
and 10v_nmos_and_pmos_for_ma
into $P
.
How can this be done ?
Another scenario is, from the csv file if i call first three projects then it should run in a loop row by row