$ gzip -dc host.access_2017-06-11.log.gz | awk '{print $NF}' > test1.txt
$ more test1.txt | awk -F '"' '{print $2}' > test2.txt
awk用法
最新推荐文章于 2025-04-06 10:29:21 发布
$ gzip -dc host.access_2017-06-11.log.gz | awk '{print $NF}' > test1.txt
$ more test1.txt | awk -F '"' '{print $2}' > test2.txt