On 07/17/2017 12:25 PM, SF Markus Elfring wrote:
> Hello,
> 
> The tool “ls” supports the filtering of directory contents. I am looking for
> possibilities for performing such data processing a bit faster when directory
> names can (and should) be excluded.

If you use GNU findutils:

find -maxdepth 1 \! -type d

if you want to stick to POSIX find, you'll have to be a bit more verbose
and use -prune.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to