How to find files excluding symbolic links?

前端 未结 6 1541
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-02 05:14

I want to find files in Linux that follow a certain pattern but I am not interested in symbolic links.

There doesn\'t seem to be an option to the find comm

6条回答
  •  你的背包
    2021-02-02 05:26

    Check the man page again ;) It's:

    find /path/to/files -type f
    

    type f searches for regular files only - excluding symbolic links.

提交回复
热议问题