LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-13-2005, 09:32 AM   #1
jeep99899
LQ Newbie
 
Registered: Aug 2004
Posts: 11

Rep: Reputation: 0
Searching multiple directories and sub directories for a file


I need to search for a specific file that may or may not be buried in a directory or 2 deep in sub directories. Is there a grep that will search that ddep into directories for a file? For instance the file name is:

1.2.826.0.1.3680043.2.133.1.3.1.7.25.7283.dcm

the directories are as deep as this:

/opt/XXXXXXX/archive/uv_dicom/dss/files/1180/204/539/(files are contained here)

Thanks for youor help.
 
Old 10-13-2005, 10:05 AM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
have you tried slocate? (run "updatedb" as root first)
 
Old 10-13-2005, 12:23 PM   #3
berbae
Member
 
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 540

Rep: Reputation: Disabled
Another solution is :

find . -type f -name "1.2.826.0.1.3680043.2.133.1.3.1.7.25.7283.dcm"

this command will search into all the subdirectories from the current directory.
 
  


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
Copy one file to multiple directories cmfarley19 Linux - General 9 11-10-2004 12:57 PM
Searching all directories HadesThunder Linux - Software 2 04-29-2004 07:37 AM
Copying a single file to multiple directories tgolly Linux - Newbie 3 04-26-2004 03:47 PM
Help I need help tarring multiple files in multiple directories VisionZ Linux - Newbie 28 03-25-2004 05:25 PM
Contents of multiple directories in one playroll Linux - Newbie 2 11-17-2003 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:24 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