Em Quarta 11 Abril 2007 19:38, Buesching, Logan J escreveu: > IF db not exists THEN > locate -u > END-IF > > I'd hate to see the time it'd take to create a first-time database... > this could take awhile to run. > _maybe_ locate -u is faster than ls / -Rv... Need to test before said anything... =P # df -h Sist. Arq. Tam Usad Disp Uso% Montado em /dev/hda3 18G 16G 473M 98% / udev 506M 752K 506M 1% /dev cachedir 18G 16G 473M 98% /lib/splash/cache shm 506M 0 506M 0% /dev/shm /dev/sda1 112G 112G 249M 100% /mnt/win2 /dev/sdb1 150G 132G 18G 89% /mnt/win3 /dev/hdb1 75G 37G 39G 49% /mnt/win1 maybe I test both here... XD # time locate -u && time locate combate.php real 23m19.453s user 0m6.600s sys 0m20.200s /mnt/win1/Documents and Settings/Davi/Desktop/stellar/codigo/php/combate.php /mnt/win1/Documents and Settings/Davi/Meus documentos/stellar/codigo/php/combate.php /mnt/win3/backup 021106/Desktop/jogos/combate.php /mnt/win3/backup 021106/Desktop/stellar/combate.php /mnt/win3/backup 021106/Desktop/stellar/stellar/combate.php /mnt/win3/backup 021106/Desktop/stellar/stellar/site/combate.php /home/davi/stellar/codigo/php/combate.php real 0m1.680s user 0m0.520s sys 0m0.060s I'm trying to find anything using ls... ls / -Rv | grep -iE "combate.php$" But I can't retrieve the entire path yet... u.u' But time seen to be the same... Sorry poor english... []s -- Davi Vidal davividal@xxxxxxxxxxxxxxxx davividal@xxxxxxxxx -- Agora com fortune: "Never trust an operating system you don't have sources for." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php