1748249 Members
3385 Online
108760 Solutions
New Discussion юеВ

Re: find comand

 
SOLVED
Go to solution
Pedro Cirne
Esteemed Contributor

find comand

Hi,

I want to find all *.tmp and *.log files, how can I do it in just one find comand?

I've tried:

find /home -name *.log|*.tmp -print

But it doesn't work :(

Thks

Pedro
3 REPLIES 3
Muthukumar_5
Honored Contributor

Re: find comand

You can try as,

find \( -name "*.log -o -name "*.log" \)

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor
Solution

Re: find comand

sorry for the previous reply. Correct one is,

find /home \( -name "*.tmp" -o -name "*.log" \)

hth.
Easy to suggest when don't know about the problem!
Pedro Cirne
Esteemed Contributor

Re: find comand

Hi,

It works!

Thks,

Pedro