ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 使用汉语环境时,grep命令竟然不区分大小写

使用汉语环境时,grep命令竟然不区分大小写

原创 Linux操作系统 作者:lawzjf 时间:2007-03-19 00:00:00 0 删除 编辑

[root@redhat ~]# export LANG=zh_CN.GB18030
[root@redhat ~]# grep [A-Z]om law
Anyway, Tom, I need your help. I'd like to make the test up
think you could help me? After work, about 7 PM,come to

[root@redhat ~]# export LANG=zh_CN.UTF-8
[root@redhat ~]# grep [A-Z]om law
Anyway, Tom, I need your help. I'd like to make the test up
think you could help me? After work, about 7 PM,come to

[root@redhat ~]# export LANG=en_US

[root@redhat ~]# grep [A-Z]om law
Anyway, Tom, I need your help. I'd like to make the test up


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/37724/viewspace-152577/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-01-18

  • 博文量
    279
  • 访问量
    931816