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

Re: man grep




what if you just put

A=`cat /etc/passwd`

at the top?

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

> 
> 
> > so, does the < at the end actually feed into the read statement?
> 
> Yes. If you made it an actual program (and not a command line), it would
> look like this:
> 
> #!/bin/bash
> 
> while read A; do
>    B=$(echo $A | cut -d':' -f3)
>    if [ $B -le 150 ]; then
>       echo $A
>    fi
> done < /etc/passwd
> 
> 
> That might be a little easier to follow, conceptually.
> 
> ================================
> 
> "When the Devil finished his code,
>  Pritchard said, 'Well, you're pretty good, ol' son!
>  Now sit back in that chair right there,
>  And let me show you how it's done.'"
> 
> 
> 
> --
> 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.