linux 截取文件命令
来源:互联网 发布:s60v3软件下载 编辑:程序博客网 时间:2024/06/06 18:55
<!-- /* Font Definitions */ @font-face{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-alt:SimSun;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;}@font-face{font-family:"/@宋体";panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-parent:"";margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify:inter-ideograph;mso-pagination:none;font-size:10.5pt;mso-bidi-font-size:12.0pt;font-family:"Times New Roman";mso-fareast-font-family:宋体;mso-font-kerning:1.0pt;}pre{margin:0cm;margin-bottom:.0001pt;mso-pagination:widow-orphan;font-size:12.0pt;font-family:宋体;mso-bidi-font-family:宋体;} /* Page Definitions */ @page{mso-page-border-surround-header:no;mso-page-border-surround-footer:no;}@page Section1{size:612.0pt 792.0pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;mso-header-margin:36.0pt;mso-footer-margin:36.0pt;mso-paper-source:0;}div.Section1{page:Section1;}-->
显示文件的第2到第6行
awk -F"/n" '{if(NR>=2&&NR<=6)print$0 }' mmnservice.cpp
sed -n '2,6p' file
head -n 10 a.c //显示a.c文件前10行
head -n 6 file|tail -n 4//显示文件前6行的后4行
- linux 截取文件命令
- Linux 字符截取命令
- Linux字符串截取命令
- linux文件截取前几行,后几行,中间几行命令
- linux替换、截取文件内容的sed命令
- linux 截取文件名字
- Linux字符截取命令-cut
- linux 下 awk 命令截取
- Linux之字符截取命令
- LInux:shell 命令:字符串截取
- linux 截取文件内容脚本
- linux下 vmstat截取io瓶颈命令
- linux 字节截取命令之cut
- Linux下的字符串截取命令cut
- linux 命令系列之 字符截取命令 cut(54)
- linux命令截取最后n行(所有命令)
- Linux管线命令之截取命令(cut,grep)
- 文件截取
- c:if的判断赋值
- poj 2184
- 一个高效的定时器分析及设计
- 选择列表框中的值
- asp.net 中IE6中 URL传中文乱码的解决
- linux 截取文件命令
- 常用算法设计技术总结
- 如何表达才能人真正明白
- 用IMessageFilter接口截获消息
- 想成为管理者必须会讲的68个超级经典小故事
- Android 应用开发详解 热销中
- Android 应用开发详解 热销中
- Android 应用开发详解 热销中
- SQL中使用WITH AS提高性能 简化嵌套SQL(转载)