rendered paste body#!/bin/bash
GET='wget $1 -q -O - 2>/dev/null'
OUTPUT="/tmp/pagina"
url="http://www.meteofa.mil.ar/"
`$GET $url | head -n 205 >$OUTPUT`
humedad=`tail -n1 $OUTPUT | cut -d '>' -f6 | cut -d '<' -f1` #humedad relativa
temperatura=`tail -n8 $OUTPUT | head -n 1 | cut -d ' ' -f4` #temperatura
cabecera=`tail -n25 $OUTPUT | head -n 1 | cut -d '.' -f2` #hora y cabecera
cielo=`tail -n18 $OUTPUT | head -n 1| cut -d '<' -f3 | cut -d '>' -f2` #cielo
echo "$cabecera.O.A"
echo "Temperatura: $temperatura"
echo "Humedad relativa:$humedad"
echo "Cielo: $cielo"