
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 ;-)
You can use "--files0-from=listadeficheros"
The timing was:
+++···························· Telcontar:~ # time cat listadeficheros | xargs -0 file > lista.file_output
real 129m13.901s
No big surprise there. If you need to do this more than once, it would probably to filter out known non-bash file-extensions or only look for "^#!.*bash" in the first line of each file instead of using 'file'. It makes the script a little more complex, but I'm sure it would reduce execution time significantly. -- Per Jessen, Zürich (4.8°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org