LinuxEye - Linux系统教程

LinuxEye - Linux系统教程

当前位置: 主页 > Linux命令 >

Linux cut命令参数及使用方法详解

时间:2013-07-01 15:35来源:www.linuxeye.com 编辑:LinuxEye 点击:
用权限:所有使用者 用法:cut -cnum1-num2 filename 说明:显示每行从开头算起 num1 到 num2 的文字。 范例: shell cat example test2 this is test1 shell cut -c0-6 example ## print 开头算起前 6 个字元 test2

用权限:所有使用者

用法:cut -cnum1-num2 filename

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

范例:

        shell>> cat example
        test2
        this is test1
        shell>> cut -c0-6 example       ## print 开头算起前 6 个字元
        test2
        this i

转载请保留固定链接: https://linuxeye.com/command/cut.html

------分隔线----------------------------
标签:cut
栏目列表
推荐内容