Barth Barth - 1 month ago 9
Linux Question

How to find files excluding symbolic links?

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
command for that.

How shall I do ?

Answer

Check the man page again ;) It's:

find -type f

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