Article 59093 Increment values in a string

Increment values in a string

by
Johng
from LinuxQuestions.org on (#59093)
I have a file with many lines of the form:

<trkpt lon="174.92797852" lat="-41.24854279">

I'm looking for a way to create a script to increment each lon value by a common factor and each lan value by another common factor, ie add .00022 to the lon value and .00044 to the lat value.

I thought I might be able to do this with sed but my limited knowledge fails melatest?d=yIl2AUoC8zA latest?i=Ri7WD2x39po:-RadNo04HHg:F7zBnMy latest?i=Ri7WD2x39po:-RadNo04HHg:V_sGLiP latest?d=qj6IDK7rITs latest?i=Ri7WD2x39po:-RadNo04HHg:gIN9vFwRi7WD2x39po
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments