Mam�o com a�ucar, #!/bin/bash typeset -i $j j=0 for i in `ls`; do j=$[$j+1] if [ $j -lt 10 ];then mv -v $i sentenca000$j elif [ $j -lt 100 ];then mv -v $i sentenca00$j elif [ $j -lt 1000 ];then mv -v $i sentenca0$j elif [ $j -lt 10000 ];then mv -v $i sentenca$j fi done
Um pouco feio, mas funcional. - Marcus Lima --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/03 Assinantes em 24/01/2003: 2225 Mensagens recebidas desde 07/01/1999: 198429 Historico e [des]cadastramento: http://linux-br.conectiva.com.br Assuntos administrativos e problemas com a lista: mailto:[EMAIL PROTECTED]
