#!/bin/bash
for DIR in $(ls -d */); do
D=${DIR%%/}
echo ${D}
tar cvf ${D}.tar ${D}
bzip2 -9 ${D}.tar
done
