开发者

Bash/Shell Echo Globbing Pattern [closed]

开发者 https://www.devze.com 2023-04-05 12:40 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. 开发者_如何学运维 Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.
开发者_如何学运维

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

new to Unix shell commands. I need to echo files in current directory who's names DO NOT start with 'cs'.


shopt -s extglob # Enable extended globbing
echo !(cs*)


find . -maxdepth 1 -type f ! -regex ".*/cs.*"
0

精彩评论

暂无评论...
验证码 换一张
取 消