Bash 在shell中,如何使用echo在当前目录中查找至少包含2个字符但不包含cs的文件
在shell中,如何使用echo在当前目录中查找名称至少包含2个字符但不包含cs的文件。试试这个Bash 在shell中,如何使用echo在当前目录中查找至少包含2个字符但不包含cs的文件,bash,shell,echo,Bash,Shell,Echo,在shell中,如何使用echo在当前目录中查找名称至少包含2个字符但不包含cs的文件。试试这个 $ find . -name "*??*" -not -name "*cs*" 如果您只对当前目录中的文件感兴趣,并且不想遍历到子目录,请尝试以下操作 $ find . -maxdepth 1 -name "*??*" -not -name "*cs*"
$ find . -name "*??*" -not -name "*cs*"
如果您只对当前目录中的文件感兴趣,并且不想遍历到子目录,请尝试以下操作
$ find . -maxdepth 1 -name "*??*" -not -name "*cs*"