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

Re: Chulerías para Debian



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martín Spinassi wrote:
>>> $ cat fortunecow2.sh
>>> #!/bin/bash
>>> FORTUNE=/usr/games/fortune
>>> COWSAY="/usr/bin/cowsay -f"
>>> DIR_VACAS=/usr/share/cowsay/cows
>>>
>>> i=$(( 1 + $RANDOM % $(ls $DIR_VACAS/*.cow | wc -l) ))
>>> $FORTUNE | $COWSAY `ls $DIR_VACAS/*.cow | sed -e ${i}p -e d`
> 
> 
> Llego tarde al hilo....pero se les ocurre alguna manera de poner el
> script para cuando abro una terminal?
> Me alegraría mucho las mañanas :-D
> 
> Saludos!
> 
> Martín S. Spinassi
> 

echo 'i=$(( 1 + $RANDOM % $(ls $DIR_VACAS/*.cow | wc -l) ))' >> ~/.bashrc

echo '$FORTUNE | $COWSAY `ls $DIR_VACAS/*.cow | sed -e ${i}p -e d`' >>
~/.bashrc

- --
Saludos,
Alejandro Bárcena Campos

Everybody needs a little love sometime; stop hacking and fall in love.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFWUrApZP6bMridNYRAlBOAJ0V1myh6ljxTdpz06R/qQvkQxjbGACfX3RV
t6R9NKZS+WG7YagEtS8TNGU=
=P9AZ
-----END PGP SIGNATURE-----



Reply to: