#!/bin/ksh for f in `ls -a | sort -` do if [ -d "$f" ] then echo $f/ fi done