I have to create multiple variable while reading the file in bash.
These variables need to have a dynamic name as per the content of file.
1 apple a day
1 keeps the doctor away
now i have to create variables as:
day_20_id = 1
day_20_fruit = apple
away_40_id = 1
away_40_who = doctor
it would be like in all variable names, only the the value of
$abc will be updated and the value of the variable will be as per the file content.
Can somebody help me out to figure out how to achieve this.