Hello all,
I have a file test.sh in which I am reading the disk size in two systems, system1 and system2 and storing them in variables s1 and s2
then I am "sed"ing the values into the same file using commands
Code:
sed "6i \server1=\"${s1}\"" -i /Server1/test.sh
for system1 and
Code:
sed "7i \server2=\"${s2}\"" -i /Server1/test.sh
for system2.
But when i try to read the value of the variables server1 and server2 I get empty strings i.e. the value is null..
why so?? I know it sounds complicated but can anyone help me?
Thanks in Advance