LinuxQuestions.org
Help answer threads with 0 replies.
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, 05: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, 05: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, 07:33 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
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, 10:12 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
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 11:28 AM
couldn't get to current directory Paxmaster Linux - Newbie 0 11-22-2004 12:37 PM
How to change the path of the current directory ? ndha Linux - General 7 12-03-2003 11:05 AM
list only files in current directory xscousr Programming 8 09-22-2003 07:35 AM
BASH: How to get current workin directory? gmitra Programming 9 09-20-2003 10:30 PM


All times are GMT -5. The time now is 05:27 AM.

Main Menu
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