shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Script p/ Buscar GeoTag em XML ou JSON


From: Anderson Duarte
Subject: Re: [shell-script] Script p/ Buscar GeoTag em XML ou JSON
Date: Tue, 29 Jun 2010 22:00:51 -0300

Em tempo...

Microbiu eu fiz assim veja:

anderson@netbook:~$ grep "<lat>" arq.xml | cut -d "<" -f2 | cut -d ">" -f2
-3.1071923
-3.8199946
-2.3939083
-3.2212290
-1.9236220

Como o meu interesse é apenas o primeiro eu usei o head e ficou assim:

anderson@netbook:~$ grep "<lat>" arq.xml | cut -d "<" -f2 | cut -d ">" -f2 |
head -n 1
-3.1071923


-- 
# Anderson Duarte (Rizada) 
# http://rizada.org
+55 79 8804-4114
"Go away or I will replace you with a very small Shell Script"


[As partes desta mensagem que não continham texto foram removidas]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]