linux shell文件截取前几行,后几行,中间几行命令
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
如果你只想看文件的前100行,可以使用head命令,如
head -100 filename
如果你想查看文件的后100行,可以使用tail命令,如:
tail -100 filename 或 tail -n 100 filename
查看文件中间一段,你可以使用sed命令,如:
sed -n ‘100,200p’ filename
这样你就可以只查看文件的第100行到第200行




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)