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

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-----



Reply to: