Basic scripting

chris h <[email protected]>
Newsgroups gmane.user-groups.linux.ottawa.general
Message-ID <[email protected]>
Greets:

Been a long time since I posted in this forum but have a simple issue. What I 
would like to do is write a simple script that parses filtered emails in 
kmail and print out specific content of that mail to my .gpsdrive/way.txt 
file

Background:

Have a buddy sailing down the east coast and he use spot

http://www.findmespot.com/en/

to broadcast his position daily. These are all filtered by author via kmail. 
I'm interested only in the lat and lon coordinates and to feed them to 
gpsdrive/way.txt file in standardized format. 

Standard email contents
------------------------------------------
ESN:0-7361228A <------- this is the user code
Latitude:40.1058  <--- need only the data
Longitude:-74.0526 < -- same as above

way.txt format
---------------------------------
svAdena                 40.097750  -74.064962 waypoint 0 0 0 0
(name of waypoint) 	(lat)		(lon)		(coord description) 

All email that needs to be parses is already located in a filtered kmail 
folder. 

Any insight on how to do this would be appreciated as I'm clueless when it 
comes to writing scripts.

-- 
/ch
-- 
OCLUG general discussion list
[email protected]
http://oclug.on.ca/mailman/listinfo/oclug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.