jtl文件如下:如下
1599047754156,8,hotel/singleroom,200,OK,线程组 1-9,text,true,,1770,205,10,10,8,0,4 1599047754156,9,hotel/singleroom,200,OK,线程组 1-3,text,true,,8447,604,10,10,9,0,4 1599047754170,5,hotel/singleroom,200,OK,线程组 1-8,text,true,,458,205,10,10,5,0,1 1599047754252,6,hotel/singleroom,200,OK,线程组 1-7,text,true,,1445,441,10,10,6,0,0 1599047754252,6,hotel/singleroom,200,OK,线程组 1-6,text,true,,458,421,10,10,6,0,0 1599047754334,4,hotel/singleroom,200,OK,线程组 1-2,text,true,,1815,487,10,10,4,0,0 1599047754359,4,hotel/singleroom,200,OK,线程组 1-5,text,true,,458,469,10,10,4,0,1 1599047754361,5,hotel/singleroom,200,OK,线程组 1-1,text,true,,1785,529,10,10,5,0,1 1599047754371,5,hotel/singleroom,200,OK,线程组 1-10,text,true,,458,257,10,10,5,0,0 1599047754371,5,hotel/singleroom,200,OK,线程组 1-4,text,true,,458,474,10,10,5,0,1 1599047754489,4,hotel/singleroom,200,OK,线程组 1-9,text,true,,458,205,10,10,4,0,0 1599047754489,4,hotel/singleroom,200,OK,线程组 1-3,text,true,,2003,595,10,10,4,0,0 1599047754504,4,hotel/singleroom,200,OK,线程组 1-8,text,true,,458,205,10,10,4,0,0 1599047754585,4,hotel/singleroom,200,OK,线程组 1-6,text,true,,1796,257,10,10,4,0,0 1599047754584,5,hotel/singleroom,200,OK,线程组 1-7,text,true,,1480,205,10,10,5,0,1 1599047754667,5,hotel/singleroom,200,OK,线程组 1-2,text,true,,729,739,10,10,5,0,0 1599047754692,4,hotel/singleroom,200,OK,线程组 1-5,text,true,,7261,586,10,10,4,0,0 1599047754694,4,hotel/singleroom,200,OK,线程组 1-1,text,true,,458,205,10,10,4,0,1 1599047754704,5,hotel/singleroom,200,OK,线程组 1-10,text,true,,458,257,10,10,5,0,1 1599047754704,5,hotel/singleroom,200,OK,线程组 1-4,text,true,,458,445,10,10,5,0,2 1599047754824,4,hotel/singleroom,200,OK,线程组 1-3,text,true,,1762,205,10,10,4,0,1 1599047754822,6,hotel/singleroom,200,OK,线程组 1-9,text,true,,458,205,10,10,6,0,3 1599047754837,5,hotel/singleroom,200,OK,线程组 1-8,text,true,,3425,604,10,10,5,0,1 1599047754918,4,hotel/singleroom,200,OK,线程组 1-7,text,true,,1711,205,10,10,4,0,0筛查方法:
awk -F ',' '$2 >= 8 {print}' 30.jtl |wc -l结果:5