Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Unix 命令返回所有以单词 report 开头的文件,但具有日志扩展名的文件除外。结果应该给出诸如report.txt而不是report.log文件之类的输出
您可以为此使用find :
$ find . -type f -name report\* ! -name \*.log