[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: man grep
> 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:
while read A; do
B=$(echo $A | cut -d':' -f3)
if [ $B -le 150 ]; then
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 email@example.com with
"unsubscribe luci-discuss" in the body.