#!/bin/bash for i in *; do if [ -x "$i" ]; then [ -d "$i" ] || echo "$i"; fi done