1. #!bin/bash
    2. jindu(){
    3. while :
    4. do
    5. echo -n "#"
    6. sleep 0.1
    7. done
    8. }
    9. jindu &
    10. cp -r $1 $2
    11. kill $!
    12. echo "拷贝完成"