Sample Header Ad - 728x90

Extracting sea level pressure from KML using Shell

3 votes
4 answers
994 views
I'm currently working on a little project; in a kml file called weatherdata.kml, I would like to extract the sea level pressure for each ` element. I'm trying to parse the information about the sea level pressure and put it into a file called report.csv`; and print the sea level pressure on a new line each time. I think this would work with awk and so far I've tried this: awk -F '[>,]' '/minSeaLevelPres/ {print $2}' report.csv But when I run this command in shell, I get this: 1002 #ex 19.2 -24.1 NINE 10 AL LO 20 23 37 1002 2020082350 0000 UTC JAN 07
Asked by user518378
Mar 14, 2022, 08:27 PM
Last activity: Mar 15, 2022, 11:34 AM