#!/bin/sh DIR=$(dirname -- $0) find $DIR/* -maxdepth 1 -perm -111 -type f -printf "%f " echo