开发者_如何学运维
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this questionnew 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.*"
精彩评论