Hi,
I am trying to do evaluate one numerical string after substitution.
++++++++++++++++==
What I have = "7.04+2.3Xlog(0.72e-6X1.0e6)X1.9596"
What I need = evaluate 7.04+2.3*log(0.72e-6*1.0e6)*1.9596 = 5.55941
what I am doing;
echo "7.04+2.3Xlog(0.72e-6X1.0e6)X1.9596" | awk '{kk=gensub(/X/,"*","g"); ak=(kk); {print ak};exit}'
here intention is to replace all "X" with "*" and then evaluate the string of numbers and print the evaluated value which I am unable to achieve. Please help
regds
A new member of the Forum(Vivek)