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