i have a file which has following content:
the value of x is : 5
In another file i have:
the value of x is :
i want when i will compare both file then output should come like
the value of x is : 5
need some help
i have a file which has following content:
the value of x is : 5
In another file i have:
the value of x is :
i want when i will compare both file then output should come like
the value of x is : 5
need some help
file1
x=5
file2
y=5
if [ $y == "" ]
then
echo $x
else
echo "$y Not null"
fi
is this what you needed?
Thanks
Sha