List only directories Posted on 20. May 200714. November 2007 by Hans-Henry Jakobsen ls -F $1 | grep \/ | sed -e 's/\/$//g' Share this:FacebookX