awk -F"E" '{print $1 * ( 10 ^ $2)}'
would work, but the problem is that awk also
uses scientific notation once the number exceeds
a given level ...
Taking the number from your example this is
what happens:
[tink@diggn:~]$ echo "5.083E-5" | awk -F"E" '{print $1 * ( 10 ^ $2)}'
5.083e-05
[edit]
Btw, I'm not quite sure what you're trying to achieve
by echoing a single number into bc?
Having toyed around a bit more I came up with
this one ...
Code:
echo "5.083E-5" | awk -F"E" 'BEGIN{OFMT="%10.10f"} {print $1 * (10 ^ $2)}'
0.0000508300
[/edit]
Cheers,
Tink