Moreno Baricevic <[EMAIL PROTECTED]> writes: > My point is that on a populated directory (e.g. /dev on 2.4), filtering > file types inside ls is faster than doing it externally by parsing a > huge output.
How much faster? For example, what is the performance of your modified version of ls with the -P option, compared to the following ways of solving the problem without adding options? time sh -c 'ls -lR -P c /dev' >/tmp/baz time sh -c 'ls -lR /dev | grep "^c"' >/tmp/foo time sh -c 'ls -ld $(find /dev -type c -print)' >/tmp/bar _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils