How to find files excluding symbolic links?

前端 未结 6 1371
爱一瞬间的悲伤
爱一瞬间的悲伤 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:45

    This works for me:

    find -H . -maxdepth 1 -type f
    

    Actually, don't really need the -H

提交回复
热议问题