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