Forward" simple.log-0108-yolo-cb-log-ok | awk '{print $6}'$ ag "net->Forward" simple.log-0108-y。2018-04-28|2018-04-28 ag better than grep。" />

2018-04-28|2018-04-28 ag better than grep

silversearcher-ag_0.19.2-1_amd64.deb

$ sudo apt-get install silversearcher-ag

【2018-04-28|2018-04-28 ag better than grep】ag + awk
$ ag "net->Forward" simple.log-0108-yolo-cb-log-ok | awk '{print $6}' $ ag "net->Forward" simple.log-0108-yolo-cb-log-ok | awk '{print $6}' > test.log216295 145365 138829 143813 152775 132817同时打印多列 ag "Prepare Data" banchmark_time.log | awk '{print $2"\t"$6"\t\t"$9}' > prepareData.log10:00:28.297Prepare58.942 10:00:28.304Prepare7.792 10:00:28.379Prepare5.625 10:00:28.392Prepare5.956 10:00:28.402Prepare5.514 10:00:28.461Prepare7.299 10:00:28.475Prepare5.389 10:00:28.487Prepare5.391

    推荐阅读