Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Can you expand step 4, or at least share the magic incantation that makes it happen?
    – fixer1234
    Commented Oct 3, 2015 at 3:52
  • Hmmm. @fixer1234: I reread the question, and I think my answer may have been a little hasty. A regular expression would certainly be a simple solution, if all paths were the same - an unlikely case. What would be more suitable would be a script that would iterate over each path-less entry, supply the first location found via $PATH, possibly failing over to a full-disk index of all executables. I could probably provide reasonable answers for either case, but they'd admittedly use UNIX/Linux commandline tools.
    – i336_
    Commented Oct 11, 2015 at 10:57