ChinaUnix首页 > Linux时代 > > 正文

命令:cut 使用方法


作者:不详 2004-10-05 23:58:59 来自:http://www.chinaunix.net

  名称:cut

  使用权限:所有使用者

  用法:cut -cnum1-num2 filename

  说明:显示每行从开头算起 num1 到 num2 的文字。

  范例:

  shell>> cat example

  test2

  this is test1

  shell>> cut -c0-6 example ## print 开头算起前 6 个字元

  test2

  this i


(编辑:admin)


Linux论坛】【评论】【关闭

Linux文档搜索
关键词