RE: Chulerías para Debian
> -----Mensaje original-----
> De: Alejandro Bárcena Campos [mailto:alejandro@barcena.com.mx]
> Enviado el: Jueves, 09 de Noviembre de 2006 19:21
> Para: debian-user-spanish@lists.debian.org
> Asunto: Re: Chulerías para Debian
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Erik Hurtado Sepulveda wrote:
> > erik@blackhawk-down:~$ 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`
> > -bash: command substitution: line 2: syntax error near unexpected token
> `|'
> > -bash: command substitution: line 2: `| sed -e ${i}p -e d'
>
> Intenta lo siguiente:
> m77@hoth:/usr/share/cowsay/cows$ ls *.cow | sed -e 1p -e d
> apt.cow
> m77@hoth:/usr/share/cowsay/cows$ ls *.cow | sed -e 2p -e d
> beavis.zen.cow
>
> ya que al parecer es ahí donde te esta marcando el error...
>
> - --
> Saludos,
> Alejandro Bárcena Campos
>
> If there is any better use for being famous and respected than using
> that status to question orthodoxy, I haven't found it yet.
> -- Eric S. Raymond, in "We Don't Need the GPL Anymore"
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFFU6njpZP6bMridNYRApfgAKCXRHwvcxfg7362kby3jjCfG0KLMQCcD/ym
> OxLVP+cIkFk+L7eTALFdkgM=
> =Hehy
> -----END PGP SIGNATURE-----
>
>
> --
> To UNSUBSCRIBE, email to debian-user-spanish-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
Aquí esta la salida
erik@blackhawk-down:/usr/share/cowsay/cows$ ls *.cow | sed -e 1p -e d
apt.cow m77
$the_cow = <<"EOC";
sed: no se puede leer m77: No existe el fichero o el directorio
erik@blackhawk-down:/usr/share/cowsay/cows$ ls *.cow | sed -e 1p -e d
apt.cow $the_cow = <<"EOC";
erik@blackhawk-down:/usr/share/cowsay/cows$ ls *.cow | sed -e 2p -e d
beavis.zen.cow
## Beavis, with Zen philosophy removed.
Reply to: