linux 如何显示一个文件的某几行(中间几行)
来源:互联网 发布:mac吃土色口红推荐 编辑:程序博客网 时间:2024/06/06 08:42
【一】从第3000行开始,显示1000行。即显示3000~3999行
cat filename | tail -n +3000 | head -n 1000
【二】显示1000行到3000行
cat filename| head -n 3000 | tail -n +1000
*注意两种方法的顺序
分解:
tail -n 1000:显示最后1000行
tail -n +1000:从1000行开始显示,显示1000行以后的
head -n 1000:显示前面1000行
0 0
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- linux 如何显示一个文件的某几行(中间几行)
- NSString NSMutableString
- MyEclipse8.6 安装 svn 插件
- 首席工程师揭秘:LinkedIn大数据后台是如何运作的
- 杭电 HDU ACM 1976 Software Version
- OC ARC机制
- linux 如何显示一个文件的某几行(中间几行)
- NSBundle UIScreen
- 事务和事务的隔离
- NSURL
- 数据库原理课本中模糊匹配 like 下划线匹配多字符问题
- NSObject
- const/typedef/函数指针/回调函数
- J2EE常见问题集锦
- 使用Gson解析json数据