Script a bultu
Date: Sep 30th, 2007 6:08:45 pm - Subscribe
Mood: zapped



Inglés
#!/bin/bash
lynx -dump -nolist "http://www.wordreference.com/es/translation.asp?tranword=""$1" | less

Francés
#!/bin/bash
lynx -dump -nolist "http://www.wordreference.com/fres/""$1" | less

Italiano
#!/bin/bash
lynx -dump -nolist "http://www.frasi.net/dizionari/spagnolo-italiano/default.asp?L21=S&vocabolo=""$1" | grep "null.gif" | sed '/\[frasimini.gif\]/s///g' | sed '/\[null.gif\]/s///g' | more

Asturiano
#!/bin/bash
lynx -dump -nolist "http://mas.lne.es/diccionario/index.php?palabra=""$1" | sed ' 1, 10 d'| tac | sed ' 1, 40 d' | tac

Galego
#!/bin/bash
lynx -dump -nolist "http://www.edu.xunta.es/diccionarios/BuscaTermo.jsp?Termo=""$1" | sed ' 1, 28 d ' | sed '/\[shim.gif\]/s///g'

R.A.E.
#!/bin/bash
lynx -dump -nolist "http://buscon.rae.es/draeI/SrvltGUIBusUsual?TIPO_%20HTML=2&LEMA=""$1" | more

Wikipedia en español
#!/bin/bash
links "http://es.wikipedia.org/wiki/""$1"


Script para ver la tv con mplayer
Los canales lógicamente son los que se ven chez-moi

#!/bin/bash
MINPARAMS=1
if [ $# -lt "$MINPARAMS" ]
then
echo " Uso: tv nº_canal, por ejemplo: tv 65 "
echo
echo " --------------------------"
echo " | Lista de canales |"
echo " --------------------------"
echo
echo " TV1 59 "
echo " TV2 65 "
echo " a3TV 47 "
echo " Cuatro 57 "
echo " Tele5 61 "
echo " Tele Asturias 22 "
echo " Tv del Principado 55 "
else
mplayer -tv device=/dev/video0:driver=v4l:width=640:height=480eep.gifutfmt=i420 -vc rawi420 -vo x11 tv://$1
fi
echo
exit 0

Script para grabar la tv con memcoder

#!/bin/bash
MINPARAMS=2
echo
if [ $# -lt "$MINPARAMS" ]
then
echo "Uso: grabar nº_canal file"
echo "Graba en un fichero avi el canal de television"
echo "Ejemplo: grabar 65 pelicula"
echo "Pulsar Control + C para detener la grabacion"
echo
echo " ##########################"
echo " # Lista de canales #"
echo " ##########################"
echo
echo " TV1 59 "
echo " TV2 65 "
echo " a3TV 47 "
echo " Cuatro 57 "
echo " Tele5 61 "
echo " Tele Asturias 22 "
echo " Tv del Principado 55 "
else
mencoder -tv driver=v4l:width=640:height=480 tv://$1-o ~/$2.avi -ovc lavc -oac pcm
fi
echo
exit 0


Meteorologia (Cambiar LEAS por el código ICAO del aeropuerto más cercano)

#!/bin/bash
lynx -dump -nolist "http://www.findlocalweather.com/forecast.php?icao=LEAS" > ~/temporal.txt
echo Asturias, aeropuerto
grep Lat: ~/temporal.txt
grep Temp: ~/temporal.txt
grep Humidity: ~/temporal.txt
grep Barometer: ~/temporal.txt
grep "Wind Speed" ~/temporal.txt
grep "Sunrise:" ~/temporal.txt
grep "Sunset:" ~/temporal.txt
rm ~/temporal.txt
Comments: (0)


Winter Template
Create your own Free Aeonity Blog Today
Content Copyrighted kir at Aeonity Blog
Comments:

ReCaptcha:

Posting as anonymous Anonymous guest, why not register, or login now.