[Tfug] Got a text formatting/database question ("bash" it to hell?)

Choprboy choprboy at dakotacom.net
Tue Apr 14 18:59:22 MST 2009


On Tuesday 14 April 2009 18:50, Choprboy wrote:
[snip]
> [ajensen at vagabond ~]$ cat testfile |grep -e '.*,170,*' |wc -l
> 2

Or for more fun and profit:

235,170,Early Ballot
236,170,Early Ballot
257,170,
238,170,Early Ballot
240,170,
241,170,Early Ballot
242,170,Early Ballot
243,170,Early Ballot
244,170,

[ajensen at vagabond ~]$ cat testfile |grep -e '.*,170,Early Ballot$' |wc -l
6

[ajensen at vagabond ~]$ cat testfile |grep -e '.*,170,$' |wc -l
3


Adrian




More information about the tfug mailing list