Link to home
Start Free TrialLog in
Avatar of ramrom
ramromFlag for United States of America

asked on

Newbie ? find command syntax

I have read the man pages for find, and am trying to follow the syntax and examples.

I try "find $PRODUCT_TOP -name l8041090.req"

and get: "ksh: find: path-list predicate-list"

which I assume is find's way of saying what it expects.

Some of the examples show the predicate list in (). When I try: "find $PRODUCT_TOP ( -name l8041090.req )"

I get: "ksh: syntax error: `(' unexpected".

What's the right way to use find? And almost equally important, what should I study to understand man pages?
ASKER CERTIFIED SOLUTION
Avatar of Mihai Barbos
Mihai Barbos
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ramrom

ASKER

OK.

An alternate web site propsed find . -name "xxx" and that was also acceptable.

How would I have derived either of these from the man pages?
Well to start with, ./ or . means the current directory in unix. Also something that looks like $BLA is most probably a variable :). And $PRODUCT_TOP was not defined. You can use any directory or expresion that will result in a directory in find's "path-list". Try again and experience the wanders of *nices ;)
Avatar of ramrom

ASKER

huh? "wanders of *nices" wuzzat?
The lovely world of UNIXes.