LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 03-28-2006, 06:13 AM   #1
ramanadyv
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
find in current directory


Hi,
Can any one send me the command to search for files in current directory only.
If i use find command,it is searching in sub directories also.Is there any option for find command to search only in current directory?

Plz send me ASAP..

Regards,
ramanadyv
 
Old 03-28-2006, 06:30 AM   #2
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Plz type "man find" ASAP and look in the documentation for the option name that starts with 'max', ends with 'th' and expects a 'level' as parameter.
 
Old 03-28-2006, 08:33 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
Quote:
Originally Posted by ramanadyv

Plz send me ASAP..
It doesn't work that way---around here, we respond when we jolly well get around to it.....

find has a format which includes the pathname.
Anytime you use a pathname, "." means current directory
 
Old 03-28-2006, 11:12 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
If it's just the current dir, I'd be tempted to use ls & pipe through grep ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how do I find out the current working directory? nodger Programming 2 12-26-2004 12:28 PM
couldn't get to current directory Paxmaster Linux - Newbie 0 11-22-2004 01:37 PM
How to change the path of the current directory ? ndha Linux - General 7 12-03-2003 12:05 PM
list only files in current directory xscousr Programming 8 09-22-2003 08:35 AM
BASH: How to get current workin directory? gmitra Programming 9 09-20-2003 11:30 PM


All times are GMT -5. The time now is 04:39 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration