Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-13-2005, 09:32 AM   #1
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:


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
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
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."

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


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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:24 PM.

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