You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
188 B

#!/bin/sh
if [ $# -eq 0 ] ; then
d="."
else
d="$1"
fi
for F in $(ls "$d") ; do
if [ -d "$d/$F" ] then
echo "[$F]"
elif [ -x "$d/$F" ] ; then
echo "$F*"
else
echo "$F"
fi
done