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: SF Markus Elfring
Subject: Re: Determination of file lists from selected folders without returning directory names
Date: Mon, 17 Jul 2017 21:03:35 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

>> 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.

The result does not look in the way I was looking for when I try the command
“find ~/Projekte/Bau -name '*txt' -prune” or
“find ~/Projekte/Bau -name '*txt' \! -type d” out.


Does any programming interface exist already which will provide only
basenames for the found files directly?

Regards,
Markus



reply via email to

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