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

Re: Chulerías para Debian



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

Alejandro Bárcena Campos wrote:
> 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.

Disculpa, olvidé las variables.... pero la idea es esa, agregarlo a .bashrc

- --
Saludos,
Alejandro Bárcena Campos

La etiqueta decía: win95 requiere pentium 75 o superior, y me compré una
SparcStation.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFWcKDpZP6bMridNYRAm9DAJ4i2PZ3v2QSwKLk6SAanL7Is3JPKACgji5M
2LBPrD0bZx1JxB5eSQ3OK/w=
=ivAx
-----END PGP SIGNATURE-----



Reply to: