LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2005, 04:07 AM   #1
subu_s
Member
 
Registered: Jun 2004
Posts: 36

Rep: Reputation: 15
Simulating mindepth, maxdepth in find


Hi,
I want to run a find command to access files at a specific depth.
In linux, I use find . -mindepth <n> -maxdepth <n> "*"

However the command does not work in Unixware. Is it possible to use
-exec or some other method so that I get results similat ro what i get with mindepth, maxdepth?

Thanks and Regards,
Subu
 
Old 04-11-2005, 05:38 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
how about something like:


Code:
find    */*/   */*/*/  */*/*/*/   -prune
not very neat though, I know.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulating Key Presses Hal Programming 2 09-02-2005 05:05 PM
Simulating a slow connection? Moloko Linux - Networking 4 06-02-2005 04:14 PM
simulating keyboard interrupt 03mcmt02 General 4 04-03-2005 08:27 PM
Simulating remote syslogging ganninu Linux - General 0 12-09-2003 02:45 AM
simulating a Hard disk vanquisher Programming 18 08-28-2003 04:13 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration