-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Erik Hurtado Sepulveda wrote: > [EMAIL PROTECTED]:~$ 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: [EMAIL PROTECTED]:/usr/share/cowsay/cows$ ls *.cow | sed -e 1p -e d apt.cow [EMAIL PROTECTED]:/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 [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]