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

Re: man grep





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

The Bash method:

while read A; do B=$(echo $A | cut -d':' -f3); if [ $B -le 150 ];
then echo $A; fi; done < /etc/passwd


-J


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