Operating System - HP-UX
1830251 Members
2622 Online
110000 Solutions
New Discussion

problem with find command

 
SOLVED
Go to solution
Stefano_10
Advisor

problem with find command

Sometimes when i run find command it gives this error:
"find: missing conjunction"
but i don't understand what i should change.
For example this command give me that error:
"find / -name s*".
But for example if i run this command i have no errors, but the list of files i looking for: "find / -name f*".
Which is the difference between these two commands?
Which is the error in the first command?
What i have to do?

Thanks
Stefano
4 REPLIES 4
Patrick Chim
Trusted Contributor
Solution

Re: problem with find command

Hi,

When using with '*', it's good to quote the strings with ' or "

i.e. find / -name 's*' -print

Regards,
Patrick
Animesh Chakraborty
Honored Contributor

Re: problem with find command

It should be witin quote
#find / -name "s*"
Did you take a backup?
Darrell Allen
Honored Contributor

Re: problem with find command

Hi Stefano,

You have the answer but I thought you'd like a little insight into why it works like this. See:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x958f8cc5e03fd6118fff0090279cd0f9,00.html

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Ariel Bourda
Occasional Advisor

Re: problem with find command

Stefano,

put quotes after and before the f*

ie ??f*??

regards