#!/bin/sh for file in $(for path in $(printf '%s\n' "$PATH" | tr ':' "\n") do walk -n "$path" done) do scrut -d "$file" || printf '%s\n' "$file" done