Does grep { ! -d "$dir/$_" && -x _ } not work?
Few hours later, changed second "$dir/$_" with _.
Thanks to toolic for catching the missing quote that I had lost during editing.
In reply to Re^2: Pathfinder - find duplicate (shadowed) programs in your PATH
by parv
in thread Pathfinder - find duplicate (shadowed) programs in your PATH
by merlyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |