1
I have two shell script files test1.sh and test2.sh . I have another file called translogs.txt.
Now I need to copy the values of two variables in test1.sh to translog.txt and the same variables need to be copied to the corresponding values in test2.sh.
test1.sh
#!/bin/sh
ONE="000012"
TIME="2013-02-19 15:31:06"
echo -e "$ONE\n$TIME">translog.txt;
translog.txt
ONE="000012"
TIME="2013-02-19 15:31:06"
But here in test2.sh, I want the same value as in translog.txt to the corresponding variable like ONE and TIME should have the same value as in translog.txt
test2.sh
#!/bin/sh
ONE="000012"
TIME="2013-02-19 15:31:06"
Are those the only contents of translog.txt? – Dennis – 2013-02-19T12:27:12.967
@Dennis Yes they are the only contents – Rudra – 2013-02-19T12:31:36.273