dataCenterPath=~/data_center protal=oss function fetch() { for file in ${dataCenterPath}/jars/*.jar do if [ -f "$file" ] then fileName=${file##*/} ossutil cp -f $file ${protol}://ztupload/stage/dataCenter/backEnd/$fileName & echo file: $fileName fi done } fetch