Re: To have find to not print, ie. to supress, when a condition

Bernhard Voelker <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
On 12/12/20 2:35 PM, Budi wrote:
> How do we have find to not print, ie. to supress, when on else condition ?
> 
> find .  -path '*/*t*s' \( -type d -printf "DIR:%p\n" -o -printf
> "**%p**\n" \) -o -print
>                                                                       --------^

This is the same question as before - and now on the correct mailing list.

> The pointed out by arrow alternative  -printf "**%p**\n" is intended
> to be instructing to suppress it instead"

I'm still not sure what exactly you wanted to achieve.
Please provide more context, at best a little reproducer:
i.e., a small example directory hierarchy, and what output you got,
and what output you expected instead.

Have a nice day,
Berny
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.