Carlos E. R. wrote:
-----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.
You have deliberately prolonged the agony by adding '-n 1' to xargs -
that means xargs will fork 'echo' once per filename.
Try this:
xargs -0 printf "%s\n"