小编yPh*_*hil的帖子

如何使用 ZSH 从命令中排除文件?

鉴于此目录内容:

one.file
two.file
three.file
Run Code Online (Sandbox Code Playgroud)

在 bash 中,当我输入时

rm *.file !(two)
Run Code Online (Sandbox Code Playgroud)

只有one.filethree.file被删除。我怎样才能在 ZSH 中做到这一点?

bash zsh globbing

6
推荐指数
1
解决办法
4641
查看次数

标签 统计

bash ×1

globbing ×1

zsh ×1