Issue
I have sequences appearing in a file as
2282.641.33712e+06
which I want to split into the respective floating point numbers as
2282.64 and 1.33712e+06.
The floating point number with the e+06
contains a single leading digit before the decimal.
Could this be done with sed / awk ?
Solution
This sed
one-liner might do the trick:
sed 's/[0-9]\.[0-9]/ &/2' file
or by matching only the dots:
sed 's/.\./ &/2' file
Answered By - M. Nejat Aydin Answer Checked By - Dawn Plyler (WPSolving Volunteer)