coreutils
[Top][All Lists]
Advanced

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

Re: 'find' do multi path search be completed and output once at a time


From: Budi
Subject: Re: 'find' do multi path search be completed and output once at a time
Date: Sun, 25 Oct 2020 08:42:01 +0700

Can 'find'  do multi path search be completed and output once at a
time each in merely one execution/invocation

Problem is if done use -o to do the multi path search it'll show all
result listed alternatingly e.g:

find . -path *.sh -o -path *.c

bash.sh

bash1.sh

main.c

bash2.sh

main1.c


what needed is to output this, in one execution/invocation:

bash.sh

bash1.sh

bash2.sh

main.c

main1.c


How to solve such ?

On 10/25/20, Budi <budikusasi@gmail.com> wrote:
> Can 'find'  do multi path search be completed and output once at a
> time each in merely one execution/invocation
>
> Problem is if done use -o to do the multi path search it'll show all
> result in immediate time e.g:
>
> find . -path *.sh -o -path *.c
>
> bash.sh
>
> bash1.sh
>
> main.c
>
> bash2.sh
>
> main1.c
>
>
> what needed is to output this, in one execution/invocation:
>
> bash.sh
>
> bash1.sh
>
> bash2.sh
>
> main.c
>
> main1.c
>
> Is it possible
>



reply via email to

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