码迷,mamicode.com
首页 > 其他好文 > 详细

cut

时间:2018-01-09 16:49:42      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:bsp   区域   class   多字节   examples   字节   自定义   sage   family   

1.cut  remove sections from each line of files (把每行中符合条件的一部分拿出来)

usage:

    cut  [-bn] [file] 或 cut [-c] [file]  或  cut [-df] [file]

    -b 字节分割

    -c 字符分割

    -d 自定义分割符

    -f 与-d一起使用,显示制定区域

    -n 取消分割多字节字符。仅和 -b 标志一起使用。

examples:

      cat a.txt |cut -bn 1-3,5

      cat b.txt|cut -d ‘ ‘ -f 2-3,7

  

    

 

cut

标签:bsp   区域   class   多字节   examples   字节   自定义   sage   family   

原文地址:https://www.cnblogs.com/jycjy/p/8251674.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!