Automatically manipulate text file

I have large text file with latitude and longitude numbers (example below)

3297180377635758  -1170703125
3297180377635722  -1170703154
3297180377635745  -1170703186

These latitude and longitude numbers are missing the decimal points, it should like this

32.97180377635758  -117.0703125
32.97180377635722  -117.0703154
32.97180377635745  -117.0703186

Using Linux commands like grep, awk, or sed (or something).  How can I automatically add these decminal points?



LVL 1
Knowledge01Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

regelandCommented:
awk '{print substr($1,1,22) "." substr($1,23)}' filename > output
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Knowledge01Author Commented:
Thank you very much, thats perfect.  I played with the numbers and that resolved my problem.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.