从s3获取数据导本地,按照小时的形式,防止把时间当做文件复制到本地
#!/bin/bash for j in {04..07}; do hh=$j echo "hh is $hh" for i in `aws s3 ls s3://ad/adn/path/impression/2016/05/12/virginia/$hh/|awk '{print $4}' ` ; do #echo "aws s3 cp s3://ad/adn/path/impression/2016/05/12/virginia/$hh/$i ./ "; aws s3 cp s3://ad/adn/path/impression/2016/05/12/virginia/$hh/$i ./ ; done done