红联Linux门户
Linux帮助

使用cut命令执行没效果,请大家帮忙看下,多谢,我用的是centos

发布时间:2009-12-01 11:21:47来源:红联作者:ciscobbsnas
[root@mycentos ~]# cat cut.tab
a 1 tp it
b 1 tp rd
c 2 ks sales
x 2 ks marketing
y 3 tc hr
z 3 tc account

[root@mycentos ~]# cut -f2 cut.tab
a 1 tp it
b 1 tp rd
c 2 ks sales
x 2 ks marketing
y 3 tc hr
z 3 tc account
文章评论

共有 3 条评论

  1. ciscobbsnas 于 2009-12-02 11:17:20发表:

    [root@mycentos ~]# cut -d" " -f3 cut.tab
    输出结果变成空的了
    不知为什么?

  2. shiyouming 于 2009-12-01 15:58:33发表:

    同意楼上

  3. bobo504 于 2009-12-01 12:18:51发表:

    没指定分隔符是什么,程序不知道以什么分割区域
    [attach]28312[/attach]