From b8a276f771e3234e68769c4d075bfe10018e11f7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 5 Apr 2013 11:04:16 -0300 Subject: Uploading version 0.6.0 --- brweather/bin/inpe-2 | 144 +++++++++++++++------------------------------------ 1 file changed, 42 insertions(+), 102 deletions(-) (limited to 'brweather/bin/inpe-2') diff --git a/brweather/bin/inpe-2 b/brweather/bin/inpe-2 index 0749ceb..f58078d 100755 --- a/brweather/bin/inpe-2 +++ b/brweather/bin/inpe-2 @@ -6,25 +6,7 @@ # http://brweatherproject.blogspot.com/ # Distribuído sob licença GPLv3 - -NUMID1=`grep -m1 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<'` -NUMID2=`grep -m2 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` -NUMID3=`grep -m3 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` -NUMID4=`grep -m4 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` -NUMID5=`grep -m5 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` -NUMID6=`grep -m6 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` -NUMID7=`grep -m7 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` - -NPC1=`grep -m1 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g'` -NPC2=`grep -m2 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g'` -NPC3=`grep -m3 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g'` -NPC4=`grep -m4 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g'` -NPC5=`grep -m5 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g'` -NPC6=`grep -m6 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g'` -NPC7=`grep -m7 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g'` - -NLT1=`grep -A2 -m1 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | tail -n1 | sed 's/ //g ; s/º//g ; s/C//g'` -NHT1=`grep -m1 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g'` +LT1=`grep -A2 -m1 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | tail -n1 | sed 's/ //g ; s/º//g ; s/C//g'` if [ -f $NLT1 ] ; then LT1="ND" @@ -32,132 +14,90 @@ else LT1="$NLT1" fi -NLT2=`grep -m2 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1` -NHT2=`grep -m2 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1` - -NLT3=`grep -m3 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1` -NHT3=`grep -m3 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1` - -NLT4=`grep -m4 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1` -NHT4=`grep -m4 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1` - -NLT5=`grep -m5 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1` -NHT5=`grep -m5 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1` - -NLT6=`grep -m6 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1` -NHT6=`grep -m6 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1` - -NLT7=`grep -m7 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1` -NHT7=`grep -m7 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1` - -SOLN1=`grep -m1 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<'` -SOLP1=`grep -m1 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<'` - -SOLN2=`grep -m2 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` -SOLP2=`grep -m2 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` - -SOLN3=`grep -m3 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` -SOLP3=`grep -m3 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` - -SOLN4=`grep -m4 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` -SOLP4=`grep -m4 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` - -SOLN5=`grep -m5 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` -SOLP5=`grep -m5 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` - -SOLN6=`grep -m6 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` -SOLP6=`grep -m6 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` - -SOLN7=`grep -m7 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` -SOLP7=`grep -m7 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1` - - - - case $1 in "--option=LT1") echo $LT1 ;; -"--option=HT1") echo $NHT1 +"--option=HT1") grep -m1 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' ;; -"--option=PC1") echo $NPC1 +"--option=PC1") grep -m1 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g' ;; -"--option=umid1") echo $NUMID1 +"--option=umid1") grep -m1 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' ;; -"--option=SOLN1") echo $SOLN1 +"--option=SOLN1") grep -m1 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' ;; -"--option=SOLP1") echo $SOLP1 +"--option=SOLP1") grep -m1 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' ;; -"--option=LT2") echo $NLT2 +"--option=LT2") grep -m2 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1 ;; -"--option=HT2") echo $NHT2 +"--option=HT2") grep -m2 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1 ;; -"--option=PC2") echo $NPC2 +"--option=PC2") grep -m2 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g' ;; -"--option=umid2") echo $NUMID2 +"--option=umid2") grep -m2 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=SOLN2") echo $SOLN2 +"--option=SOLN2") grep -m2 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=SOLP2") echo $SOLP2 +"--option=SOLP2") grep -m2 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=LT3") echo $NLT3 +"--option=LT3") grep -m3 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1 ;; -"--option=HT3") echo $NHT3 +"--option=HT3") grep -m3 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1 ;; -"--option=PC3") echo $NPC3 +"--option=PC3") grep -m3 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g' ;; -"--option=umid3") echo $NUMID3 +"--option=umid3") grep -m3 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=SOLN3") echo $SOLN3 +"--option=SOLN3") grep -m3 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=SOLP3") echo $SOLP3 +"--option=SOLP3") grep -m3 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=LT4") echo $NLT4 +"--option=LT4") grep -m4 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1 ;; -"--option=HT4") echo $NHT4 +"--option=HT4") grep -m4 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1 ;; -"--option=PC4") echo $NPC4 +"--option=PC4") grep -m4 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g' ;; -"--option=umid4") echo $NUMID4 +"--option=umid4") grep -m4 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=SOLN4") echo $SOLN4 +"--option=SOLN4") grep -m4 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=SOLP4") echo $SOLP4 +"--option=SOLP4") grep -m4 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=LT5") echo $NLT5 +"--option=LT5") grep -m5 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1 ;; -"--option=HT5") echo $NHT5 +"--option=HT5") grep -m5 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1 ;; -"--option=PC5") echo $NPC5 +"--option=PC5") grep -m5 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g' ;; -"--option=umid5") echo $NUMID5 +"--option=umid5") grep -m5 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=SOLN5") echo $SOLN5 +"--option=SOLN5") grep -m5 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=SOLP5") echo $SOLP5 +"--option=SOLP5") grep -m5 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=LT6") echo $NLT6 +"--option=LT6") grep -m6 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1 ;; -"--option=HT6") echo $NHT6 +"--option=HT6") grep -m6 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1 ;; -"--option=PC6") echo $NPC6 +"--option=PC6") grep -m6 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g' ;; -"--option=umid6") echo $NUMID6 +"--option=umid6") grep -m6 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=SOLN6") echo $SOLN6 +"--option=SOLN6") grep -m6 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=SOLP6") echo $SOLP6 +"--option=SOLP6") grep -m6 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=LT7") echo $NLT7 +"--option=LT7") grep -m7 '
TEMP. MÍNIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1 ;; -"--option=HT7") echo $NHT7 +"--option=HT7") grep -m7 '
TEMP. MÁXIMA
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'C' | sed 's/º//g' | tail -n1 ;; -"--option=PC7") echo $NPC7 +"--option=PC7") grep -m7 '/imgs/pixel.gif" width="30px" height="10px" border="0"/>' ~/.brweather/cache/cache | cut -f2 -d'>' | cut -f1 -d'<' | sed 's/ //g' | tail -n1 | sed 's/%//g' ;; -"--option=umid7") echo $NUMID7 +"--option=umid7") grep -m7 '
15h00
' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=SOLN7") echo $SOLN7 +"--option=SOLN7") grep -m7 '
NASCER DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; -"--option=SOLP7") echo $SOLP7 +"--option=SOLP7") grep -m7 '
PÔR DO SOL' ~/.brweather/cache/cache | cut -f4 -d'>' | cut -f1 -d'<' | tail -n1 ;; "--option"* ) echo "Opção inválida. Experimente --help para mais informações." -- cgit v1.2.3