- 论坛徽章:
- 39
|
回复 7# shencz2000
这个可能是环境问题了,我在linux下都是不能直接加引号的:- [root@ ~]# grep --version
- GNU grep 2.6.3
- Copyright (C) 2009 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- [root@ ~]# echo {1..5}.tar.gz |xargs -n1 |grep ".tar.gz"
- 1.tar.gz
- 2.tar.gz
- 3.tar.gz
- 4.tar.gz
- 5.tar.gz
- [root@ ~]# echo {1..5}.tar.gz |xargs -n1 |grep "*.tar.gz"
- [root@ ~]#
复制代码 |
|