Is it a bugs for find command? :(


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Is it a bugs for find command? :(
# 1  
Old 05-20-2002
Is it a bugs for find command? :(

Hi!

When i am trying to use find command to seacrh files in current directory, it help me to search for it sub-directory also.

Is there anyway to avoid it?

I am using unix operating system.

My friend told me that only linux did handle this, is it true?
# 2  
Old 05-20-2002
What variant of unix ?? (hp, sco, solaris, etc)
Linux supports -maxdepth so

find . -maxdepth 1

will show all of the files in the current directory. check the man page on find
to see what it supports

(To get the manual page type:

man find

from the command prompt)
# 3  
Old 05-21-2002
finding files in current dir

you also could find files in current dir withouth even useing find. you can use a command like (ls -la |grep partoffile). and you have a all files where partoffile in stands. (you also have all dirs but you do nto look inside sub dirs).
# 4  
Old 05-21-2002
Hammer & Screwdriver find

you can use the find command search while avoiding
the sub-directory by using -xdev switch

the syntax will be

find . -name (file searching for) -xdev

Last edited by hassan2; 05-21-2002 at 05:21 PM..
# 5  
Old 05-21-2002
See this post for my answer. And be sure that you're reading that particular post. My first attempt earlier in the thread was a fumble. Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. What is on Your Mind?

Meltdown and Spectre CPU bugs

This seems a bit serious: Meltdown, Spectre: The password theft bugs at the heart of Intel CPUs • The Register Vulnerability Note VU#584653 - CPU hardware vulnerable to side-channel attacks Project Zero: Reading privileged memory with a side-channel (8 Replies)
Discussion started by: Scrutinizer
8 Replies

2. UNIX for Beginners Questions & Answers

Getting started with fixing bugs for Linux

Okay I want to try my luck at fixing bugs for the Fedora OS, but I guess this question deals with any Linux distro or any open source OS for that matter. I want to know how I can start fixing bugs on the OS level. For example the particular bug that I want to target is this logout bug I mean... (6 Replies)
Discussion started by: sreyan32
6 Replies

3. UNIX for Beginners Questions & Answers

Bugs in my new Ubuntu installation

I recently bought a new HP Spectre x360 laptop and installed Linux (Ubuntu 16.04 LTS 64 bit) for the first time. I am seeing various bugs. I don't know if the problems are due to: (a) Hardware problems with the new laptop. (b) Software issues, i.e. Ubuntu not working with the other... (7 Replies)
Discussion started by: twelth_hour
7 Replies

4. Solaris

Bugs with clock()

Hi there!!! Need your help in solving some tricky problems. Since clock() as such is buggy on SUN OS 5 we have started using gettimeofday() in our RTOS applications based on Solaris 9. The problems we actually encountered previously were - the applications kind of freeze/hang eternally on... (1 Reply)
Discussion started by: smanu
1 Replies
Login or Register to Ask a Question