#!/bin/bash
cd $1
for i in *
#Note the * above is expanded into all the files in $1
#Below is an inferior version
#for i in $1/*
do
if test -d $i
then
	echo "$i"
fi
done | column

