I have a file like this:
(blank line) [Test1] a=1 b=2 c=3
I have to read value of
c in variables, so I used
source command and it did the job. But for the line 2 i.e.
[Test1], it show command not found.
How can I take
[Test1] in a variable too?
Basically I am expecting:
$some_var=[Test1] $a=1 $b=2 $c=3
So I can use these values further.
Currently what I am doing is removing first two lines from the file and then
source file, and by doing this I am not getting line 2 in a variable. I am looking for a better way. I am doing it all inside a bash script.