coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determination of file lists from selected folders without returning


From: Eric Blake
Subject: Re: Determination of file lists from selected folders without returning directory names
Date: Mon, 17 Jul 2017 13:02:44 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

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

[Prev in Thread] Current Thread [Next in Thread]