Popular recipes tagged "which" but not "commandline"http://code.activestate.com/recipes/tags/which-commandline/2009-06-29T15:20:10-07:00ActiveState Code RecipesPrints full name of all occurrences of given filename in your PATH (Python)
2009-06-29T15:20:10-07:00Ben Hoythttp://code.activestate.com/recipes/users/4170919/http://code.activestate.com/recipes/576823-prints-full-name-of-all-occurrences-of-given-filen/
<p style="color: grey">
Python
recipe 576823
by <a href="/recipes/users/4170919/">Ben Hoyt</a>
(<a href="/recipes/tags/filename/">filename</a>, <a href="/recipes/tags/find/">find</a>, <a href="/recipes/tags/path/">path</a>, <a href="/recipes/tags/which/">which</a>).
</p>
<p>Simple program to print the full name of all occurrences of the given filename in your PATH. Kind of like the Unix "which" utility, but works for DLLs and other files as well.</p>
<p>Usage: findinpath.py filename</p>