The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Multiple search in multiple files maxvirrozeito Shell Programming and Scripting 2 12-13-2007 01:32 PM
cd to multiple directories and gzipping files within sunsysadm2003 Shell Programming and Scripting 0 10-30-2007 05:50 PM
get files from multiple directories using FTP amit1209 Shell Programming and Scripting 2 09-26-2007 10:39 AM
copy multiple files in different directories ken2834 UNIX for Dummies Questions & Answers 3 03-25-2007 02:35 PM
FTP multiple files to different directories abrd600 Shell Programming and Scripting 12 09-23-2004 08:56 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-25-2006
ravikirankethe ravikirankethe is offline
Registered User
  
 

Join Date: Oct 2006
Location: NewYork
Posts: 21
Search for files in multiple directories

I want to search for a file pattern in more than one directory. How I need to do that?

Here is the scenario:

I am having a directory structure like the following:
/log
...../20051001
..........ftp_server_20051001.log
..........ftp_down_server.log
..........ftp_up_server.log
...../20051101
..........ftp_server_20051101.log
...../20051201
..........ftp_down_server.log
..........ftp_up_server.log
...../20060101
..........ftp_down_server.log
..........ftp_up_server.log
...../20060201
..........ftp_server_20060201.log
...../20060301
..........ftp_down_server.log
..........ftp_up_server.log
..........ftp_server_20060201.log
...../20060401
..........ftp_down_server.log
..........ftp_up_server.log

I want to find out all the logs that start with "ftp_server" in the
year 2006 from the log directory.
Can some one help me with the command?

I used to try like: $ find . -name 2006*/ftp_server*. It listed only one
file information and quits with some error. I am looking for all the files

Thanks,
Ravi

Last edited by ravikirankethe; 10-25-2006 at 05:03 PM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0