I have a bash script that gives me the following output:
'string1': {'something': u'2.000', 'anotherthing': u'3.0000000'
'string2': {'something': u'1.000', 'anotherthing': u'1.85695664'
'string3': {'something': u'1.000', 'anotherthing': u'4.0000000'
'string4': {'something': '01.000', 'anotherthing': u'0.43448059'
I want to assign each line with a variable ( strinx) ....I`ve tried awk '{print "var"NR"="$0}' , but it just creates a variable like this:
var1=string1': {'something': u'2.000', 'anotherthing': u'3.0000000'
var2='string2': {'something': u'1.000', 'anotherthing': u'1.85695664'
var3='string3': {'something': u'1.000', 'anotherthing': u'4.0000000'
var4='string4': {'something': '01.000', 'anotherthing': u'0.43448059'.
How can i get more than 1 variables? Thank you