The UNIX and Linux Forums  

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

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
help on egrep arund_01 Shell Programming and Scripting 2 05-13-2008 10:26 AM
egrep help Darklight Shell Programming and Scripting 1 04-17-2008 11:34 PM
Egrep cheat sheet anywhere? Looking for meaning of egrep -c leelm UNIX for Dummies Questions & Answers 2 01-11-2008 12:37 PM
egrep help Vozx Shell Programming and Scripting 2 12-09-2005 07:42 AM
Egrep Help FuzzyNips UNIX for Dummies Questions & Answers 2 11-10-2004 01:25 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-11-2008
Registered User
 

Join Date: Jan 2008
Posts: 69
egrep

Hi,

I don't understand what is the correct way of writing:

egrep -l '{$min,$max} $pattern' $filename

I tryed to search on google how to wtrite {$min, $max}, but I don't have success
Reply With Quote
Forum Sponsor
  #2  
Old 01-11-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,295
What task exactly are you trying to do? -- not how you think you should do it.
Reply With Quote
  #3  
Old 01-12-2008
Registered User
 

Join Date: Jan 2008
Posts: 69
Quote:
Originally Posted by jim mcnamara View Post
What task exactly are you trying to do? -- not how you think you should do it.
I'm trying to search in a list of files, the files that contain a pattern for a number of times between Min and Max

But I don't know how to do it
Reply With Quote
  #4  
Old 01-13-2008
Registered User
 

Join Date: Jan 2008
Posts: 69
How to pass a list of files

Another question about EGREP:

How can I pass a list of files to egrep?

I Tryed:
Code:
 find | egrep -l  abc 
 ls -lR | egrep -l  abc
but the shell says:
(standard input)

Why?
Reply With Quote
  #5  
Old 01-13-2008
Registered User
 

Join Date: Jan 2008
Posts: 69
Question find a pattern and...

Hi,

I have to write a command (with egrep, awk or sed) to list the name of the files that contain a pattern that is between two values: min e max.
It also have to return the number of time the pattern has been found in every simgle files is listed.

I tryed to do it with egrep, but I have no success.

Do you have any advice?
Reply With Quote
  #6  
Old 01-13-2008
Registered User
 

Join Date: Sep 2006
Posts: 1,580
Quote:
Originally Posted by DNAx86 View Post
I tryed to do it with egrep, but I have no success.
show how you have no success so that others can see what's wrong with your code
Reply With Quote
  #7  
Old 01-14-2008
Registered User
 

Join Date: Jan 2008
Posts: 69
Quote:
Originally Posted by ghostdog74 View Post
show how you have no success so that others can see what's wrong with your code
I have already said how I have no success..

" but the shell says:
(standard input) "
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 01:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0