So I created a simple PHP script, which will do :
# List millions of files with no problem
# default output : machine parseable, for easy post-processing
# human-readable output option also available
The result turned out to be quite powerful. I used it to process tens of millions of files, no sweat.
An example :Â
cd /mnt/tmp/tmp1 ; bigls.php | while read OUT ; do cond=20130901 ; x=`echo $OUT | cut -b 1-8` ; f=`echo $OUT | cut -b 10-255` ; if [ $cond -ge $x ]; then mv  $f /mnt/tmp/tmp2/ >> /tmp/files-moved.log ; fi ; done
That single line of commands will move all files created before 1 Sep 2013 from /mnt/tmp/tmp1/ to /mnt/tmp/tmp2/
Again, pretty powerful stuff 🙂 now we can process million of files with no problem.
So here it is, enjoy !
bigls : https://raw.github.com/sufehmi/bigls/master/bigls.php
bigls website : https://github.com/sufehmi/bigls
note: you'll need at least PHP 5.3.0 to run bigls
Post imported by Google+Blog for WordPress.
nice posts.. keep it up.. like your site..
keren om
thanks very much
Rental Mobil Yang Ada Di Jakarta Silahkan Hubungi (021) 7393907, 70720125, 085710117171, 08388322662
Useful Post. Thanks
Nice tuts gan! Saya coba lain kali.
thanks gan..
thnks gan sudh mw share infonya sangat membntu,,,
oleh : kaosjkt48yogya
great. . .
http://wapmobie.heck.in
nice post
makasih infonya ya
nice post
terimakasih atsa info nya gan , selamat siang semuahank u very much much much atas infonya gan 😉 http://goo.gl/u8z8HE | http://goo.gl/O2egrp | http://goo.gl/XmlGjZ
I really like the info thanks Greetings
ini artcel yang bagus dan tips yang kren
moga”bakal byk yang kunjungi web ini yaa 🙂
mohon kunjungi web kami
http://www.168sdbet.com
terima kasih
selalu berkarya, selalu inspiratif untuk info yang disajikan, terimaksih
I am new to PHP and Linux. Can you tell me how to install bigls?
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me. https://accounts.binance.com/id/register?ref=RQUR4BEO
postingan yang menarik
kunjungi kami di https://tradsent.com
postingan yang menarik
kunjungi kami di https://tradsent.com/rental-mobil-jakarta-plus-supir.html