#!/bin/bash

cd /root

for i in `ls`

do

if [ -d $i ]

then

cp -r $i /tmp/

fi

done