[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: To have find to not print, ie. to supress, when a condition
From: |
Bernhard Voelker |
Subject: |
Re: To have find to not print, ie. to supress, when a condition |
Date: |
Sun, 13 Dec 2020 00:25:09 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 |
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