3
我是壳牌的绿色之手。请参阅我的以下代码。如何使它工作?带参数扩展的外壳通配符
[[email protected] ~]# ls {*.txt,*.exe}
a.txt b.txt a.exe b.exe
[[email protected] ~]# filter={*.txt,*.exe}
[[email protected] ~]# echo $filter
{*.txt,*.exe}
[[email protected] ~]# ls $filter
ls: {*.txt,*.exe}: No such file or directory
[[email protected] ~]#
哪贝壳?他们都不同。 – 0xC0000022L 2012-03-02 04:07:32
这是Bash Shell – 2012-03-02 04:11:38
另外,这看起来像是根提示。在尝试时以root身份登录被普遍认为是一个非常糟糕的主意。 – tripleee 2012-03-02 06:08:13