#!/bin/bash #cp root/ /tmp/ #by wangyq 2017 for i in `ls /root/` do if [ -d $i ] then cp -r $i /tmp/ fi done