Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ksh find without subdirectories

Status
Not open for further replies.

TSch

Technical User
Jul 12, 2001
557
0
0
DE
Hi everyone,

I'm afraid ... It is driving me crazy again ... :-/

I'm trying to use

Code:
find ./ -name XYZ -mtime +50

... without diving into any of the subdirectories, because he's supposed to find certain files in the main directory and move them into the subdirectories ...

But somehow ... Neither "-prune" nor "-depth" seems to be doing any good here ... And "-maxdepth" is unknown within ksh ... :-/

(I'd prefer not to have to change the shell ...)

Any ideas what I could do about it ?

Best Regards,
Thomas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top