ls -lL echo PATH tr dev null awk NF print NF sort -u proglist

1
ls -lL `echo "$PATH" | tr : ' '` 2>|/dev/null | awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort -u > ~/.proglist