-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, 2013-04-04 at 10:26 +0200, Bernhard Voelker wrote:
On 04/04/2013 10:07 AM, Carlos E. R. wrote:
It is the file command. There are, of course, many files. I don't know how many, because:
Telcontar:~ # wc -l listadeficheros 4 listadeficheros
because they are null terminated strings ;-)
$ xargs -0 -n 1 echo < listadeficheros | wc -l
;-)
Let's see... ... I have that running for 17 minutes and it has not finished. xargs is using 10% CPU, no disk activity. The listing is 184M. I abort it, try again without the last part of the pipe to see if there are errors. Telcontar:~ # time cat listadeficheros | xargs -0 -n 1 echo ... ... real 26m23.341s user 0m11.142s sys 2m15.679s Telcontar:~ # No error. Let's try again: Telcontar:~ # time cat listadeficheros | xargs -0 -n 1 echo | wc -l 2697454 real 25m10.859s user 0m11.499s sys 2m20.532s Telcontar:~ # Telcontar:~ # time cat listadeficheros > /dev/null real 0m0.041s user 0m0.000s sys 0m0.040s Telcontar:~ # It appears that xargs itself is slow... Anyway, I have 2697454 files :-) - -- Cheers, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAlFdU40ACgkQtTMYHG2NR9V4IQCgmPSaRLZ8aDGeei5LcTmQPVIE Ql4AoJCIredXV98lmTwqM9O0ocTxyWqS =Ymw6 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org