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
Grep command nickg UNIX for Dummies Questions & Answers 14 10-06-2008 11:22 AM
grep command christine33990 UNIX for Dummies Questions & Answers 11 05-06-2008 02:45 AM
how to exclude the GREP command from GREP yamsin789 UNIX for Advanced & Expert Users 2 10-05-2007 02:59 AM
grep command pmsuper UNIX for Dummies Questions & Answers 6 11-22-2006 07:12 AM
grep command debasis.mishra Shell Programming and Scripting 1 03-28-2006 01:53 AM

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 07-11-2007
ishmael^soyuz ishmael^soyuz is offline
Registered User
  
 

Join Date: Jul 2007
Location: Hyderabad, India
Posts: 3
grep command help

Hi All,

i need to find out the scripts which are containing the email id(ex: @ge.com)
How can i search such scripts?
i used grep command as:
grep -wl ge.com
but it is fetching me ".ge.com" also
and also hidden scripts are not displayed.
could u plz help me out?

Thanks,
Ismail
  #2 (permalink)  
Old 07-11-2007
Klashxx's Avatar
Klashxx Klashxx is offline Forum Advisor  
HP-UX/Linux/Oracle
  
 

Join Date: Feb 2006
Location: Almerķa, Spain
Posts: 393
Many ways to do it ,for start:
Code:
ll -tra|grep -l "@ge\.com"
Cheers
  #3 (permalink)  
Old 07-11-2007
ishmael^soyuz ishmael^soyuz is offline
Registered User
  
 

Join Date: Jul 2007
Location: Hyderabad, India
Posts: 3
thanks could u plz suggest one more way

Hi Klashxx

i worked on the command tht u hav sent but it is not executing could u plz elobarate on that or suggest one more way
  #4 (permalink)  
Old 07-11-2007
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,507
most probably you do not have the ll command.
Code:
awk '/@ge\.com/{print}' "file"
  #5 (permalink)  
Old 07-11-2007
Klashxx's Avatar
Klashxx Klashxx is offline Forum Advisor  
HP-UX/Linux/Oracle
  
 

Join Date: Feb 2006
Location: Almerķa, Spain
Posts: 393
U can also use find :
Code:
find . -type f  -exec grep -l "@ge\.com" {} \;
Anyway , could u post the error that raised from the other solution?
Sponsored Links
Closed Thread

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:10 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