shell-script-pt
[Top][All Lists]
Advanced

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

Re: [shell-script] script Matrix - colaborativo


From: Filipe Batista (Lipse)
Subject: Re: [shell-script] script Matrix - colaborativo
Date: Thu, 8 Jun 2006 22:39:47 -0300

2006/6/8, Fernando Ortiz <address@hidden>:
>
> Eu tirei alguns espaços e funcionou , obrigado!
>
> Estou tentando agora adcionar mais uma coluna! :-)
>
> Fernando
>
>
>

Oi Fernando, vc pode, por favor, me passar o script depois da sua alteração?

Pois aqui ainda chega a funcionar por 3s, mas aí aparece esse erro:

-----------------------------------------------

susage: tput [-V] [-S] [-T term] capname
./matrix.sh: line 96: lines: command not found
./matrix.sh: line 95: RANDOM%: syntax error: operand expected (error token
is "%")

-----------------------------------------------

Tenho um outro aqui que achei há muito tempo em um site, mas ele é um pouco
diferente:

-------------------------------------------------

#!/bin/bash

trap "echo -e '\033[m0';clear;setterm -cursor on;exit" 2

setterm -cursor off

Chars="abcdefghijklmnopqrstuvxywzABCDEFGHIJKLMNOPQRSTUVXYWZ01234567890!@#$%¨&*()_-+=^~{}[];:?"
clear
while true; do
lin=0
[ ${#Cols[@]} -eq $(($(tput cols)-2)) ] && unset Cols
while true; do
COL=$((RANDOM%$(tput cols)))
[ "${Cols[$COL]}" ] && continue
Cols[$COL]=1
break
done
COR="\e[3$((RANDOM%7+1));1m"
while [ $lin -lt $(tput lines) ]; do
Char=$(echo $Chars | cut -c$((RANDOM%86+1)))
tput cup $lin $COL; echo -en "$COR$Char";sleep 0.01
let lin++
done
done

------------------------------------------------------

Té mais.

Abraço.

-- 
Filipe Batista (Lipse) <> GNU/Linux User Number: 359785
ICQ: 268859027 <> Jabber ID: address@hidden
http://lipse.blogspot.com/


[As partes desta mensagem que não continham texto foram removidas]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]