How to find files excluding symbolic links?

Barth picture Barth · Apr 30, 2013 · Viewed 60.8k times · Source

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

hek2mgl picture hek2mgl · Apr 30, 2013

Check the man page again ;) It's:

find /path/to/files -type f

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