【问题标题】:Linux- how to find a file with a certain string in its name? [closed]Linux-如何查找名称中包含特定字符串的文件? [关闭]
【发布时间】:2017-01-17 10:36:09
【问题描述】:

如果我想查找名称中包含字符串“test”的所有文件,我该怎么做?

【问题讨论】:

标签: linux string file


【解决方案1】:

你可以试试这个:

find . -maxdepth 1 -name "test" -print

find . -type f -name "*test*"

【讨论】:

    猜你喜欢
    • 2012-07-04
    • 1970-01-01
    • 2022-01-17
    • 2012-12-05
    • 1970-01-01
    • 2012-08-01
    相关资源
    最近更新 更多