[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: man grep




Is there a solution for this without using perl? maybe just regular
expression with grep?

________________________
Lunar Media Incorporated
what a wicked web we weave
http://www.lunarmedia.net
1 . 8 0 0 . 2 5 2 . 8 2 2 1  

On Sat, 5 Feb 2000, Jay Link wrote:

> 
> 
> > > For example, I am trying to get grep to look for a number beween 1-150 in
> > > the third field of /etc/passwd with a delimiter of :
> 
> Oh, but you want the whole line, don't you?
> 
> cat /etc/passwd | perl -e 'while (<>) { ($one, $two, $three, $four) =
> split (/:/, $_, 4); print if ($three <= 150); }'
> 
> 
> -J
> 
> 
> --
> To unsubscribe, send email to majordomo@luci.org with
> "unsubscribe luci-discuss" in the body.
> 


--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.