How to display the full path of files found by the Finder "Find" function? [duplicate]

I'm trying to use the Finder to search my code base. For example I would like to find every files that ends with ".m" and contains "keyDown".

Finder does this, but in the Finder window showing the results, the full path can not be displayed individually on each line, but only if you click on the file. In this case it's displayed on a status bar on the bottom.

Is there a way with Finder, or possibly another tool, to display the full path for each file next to the filename ?


Solution 1:

HoudahSpot allows adding a column for either short paths or absolute paths.

See also this question at Super User.

Solution 2:

The easiest way to get full paths from a Finder search result is to drag the items into a text field (e.g., TextEdit).

  1. Use the standard Find dialog in the Finder to search for files.
  2. Select all matching items.
  3. Open TextEdit with a blank document and format it as a plain Text (Format/Make Plain text)
  4. Drag the items into the TextEdit window.

Voilà, full paths!

This actually works for any file in the Finder; for example, it's useful for dragging a specific file from Finder into a Terminal window instead of entering the path by hand.

Note that if you copy-paste into a text field instead, you'll only get the filenames, not the full paths.