linux中直接对压缩文件进行处理

 

1、

root@DESKTOP-1N42TVH:/home/test# ls
outcome.map.gz
root@DESKTOP-1N42TVH:/home/test# cat outcome.map.gz | head -n 5    ## 执行以上命令直接乱码

 

2、

root@DESKTOP-1N42TVH:/home/test# ls
outcome.map.gz
root@DESKTOP-1N42TVH:/home/test# zcat outcome.map.gz | head -n 5   ## 直接对压缩文件进行处理
1       s64199.1        0       55910
1       OAR19_64675012.1        0       85204
1       OAR19_64715327.1        0       122948
1       OAR19_64803054.1        0       203750
1       DU281551_498.1  0       312707

 

posted @ 2022-04-03 21:24  小鲨鱼2018  阅读(47)  评论(0编辑  收藏  举报