For those wishing to transform a full data file with numbers in scientific notation that is output from Fortran (or C, et al.) as "1.6E-19" and "3.0E+08" and such, it is incredibly faster to make changes in the Unix sed command line editor than doing a search and replace in the .m file within Mathematica or any word processor. At the Unix prompt $ one types
$ cat FilewE.m | sed 's/E-/*^-/g' | sed 's/E+/*^+/g' > FilewoE.m
For those new to Unix, the cat command "concatenates" a single file (named FilewE.m in this example), which normally would flow the contents onto the terminal screen. Instead the flow is piped | into sed and, to avoid killing off any Es that appear in words, E- is replaced with *^- globally g. The output of that is piped into sed again to catch the positive exponents and the output of that is directed > to the output file named FilewoE.m in this example.
ewith*^. That seems like the easiest approach if you have this file already in place. – Oleksandr R. Nov 22 '12 at 14:59Getthe file via a pipe, preprocessing it withsedor similar. – Oleksandr R. Nov 22 '12 at 15:30<<"!sed 's/e/*^/gI' < file.m"? Obviously you should be careful when doing this if you have other occurrences of "e" in the file. – Oleksandr R. Nov 22 '12 at 15:47Internal`StringToDouble– masterxilo Sep 03 '17 at 19:56