Linux命令

查看文件前几行
head -n 10 filename
查看文件后几行
tail -n 10 filename
从文件的start行开始,查看count行
cat filename | tail -n +start | head -n count
比如:
cat hivoice_platform.log | tail -n +6400 | head -n 300

posted @ 2021-06-30 10:17  小路不懂2  阅读(36)  评论(0编辑  收藏  举报