Hi,
i wanna save multiline text with variable in a file.
The following shows a example:
Code:
${text} = ${Array[i]}
${text[$p - $v]} = ${Array[i]}
The
red marked text and symbols should saved as symbol.
The
green marked text and symbols should saved as the value.
e.i. saved text:
Code:
${text} = 8
${text[3 - 4]} = 8
I want save this text in ".txt" file
Code:
echo "'${text} =' ${Array[i]}
'${text['$p '-' $v']} =' ${Array[i]}" > Test.txt
Unfortunately this doesn't work. What's wrong?
At the end I want implement this in a loop. For this reason I use "i" in the array.