#!/bin/bash
#
# Display the size of all subdirectories
#
#

if [[ ($1 == -h) || ($1 == -help) || ($1 == --help) ]]; then
	echo mydu [-a] [any ls-type option]
	echo -a:   include hidden directory
	exit 0
fi

for f in $(/bin/ls $@); do
#	echo $f;
	if [[ (-d $f) && ($f != ..) ]];  then 
		du -s $f;
	fi
done