The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Searching for files with certain string pattern intrigue UNIX for Dummies Questions & Answers 1 02-28-2008 05:28 PM
Pattern searching pattern in c files murthybptl Shell Programming and Scripting 6 11-17-2007 09:15 AM
Regarding Searching Pattern sbasetty Shell Programming and Scripting 2 09-29-2006 05:49 PM
Pattern searching inside Variable - not looking at files Rediranch UNIX for Dummies Questions & Answers 3 06-07-2005 02:07 PM
pattern searching using C giannicello High Level Programming 1 04-16-2002 12:53 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-26-2006
ravi.sadani19 ravi.sadani19 is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 42
Searching all files that contain pattern

Hello All,

i have to search a pattern in all the files in all subfolders that are present in current directory.

suppose i am in d1 directory and in that sd1,sd2,sd3 are subdirectories.
in
sd1 i have files f1,f2
sd2 i have files f3,f4
sd3 i have file f5

i have to list out all those files in which word "GotIt" is present.
Suppose it is present in f1,f3,f5 file.

Pls give me the command which can list all these 3 file names

Thanks
  #2 (permalink)  
Old 01-26-2006
mahendramahendr mahendramahendr is offline Forum Advisor  
Registered User
  
 

Join Date: Dec 2005
Location: London
Posts: 222
This question has answered many times earlier...

Could you please search this forum...
  #3 (permalink)  
Old 01-26-2006
ravi.sadani19 ravi.sadani19 is offline
Registered User
  
 

Join Date: Jul 2005
Posts: 42
pls help me to find out that

Quote:
Originally Posted by mahendramahendr
This question has answered many times earlier...

Could you please search this forum...
i am new to this forum. If u know can you please let me know.

It would great.

Thanks
  #4 (permalink)  
Old 01-26-2006
mahendramahendr mahendramahendr is offline Forum Advisor  
Registered User
  
 

Join Date: Dec 2005
Location: London
Posts: 222
Here is the link

Would request you to read the forum rules as well...

Have a nice time and hope you will find answers to all your questions.
  #5 (permalink)  
Old 11-29-2008
kleanil kleanil is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 4
Searching a file within sub folders

Hi All,

I'm looking for the UNIX shell script to search a file having some characters within a particular path which intern have many sub folders in it.

Regards
Anil
Closed Thread

Bookmarks

Tags
shell script, shell scripting, unix scripting, unix scripting basics

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 10:00 AM.


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