shell 微调加载

  • affect.sh
#!/usr/bin/env bash

arr=('-' '\' '|' '/')
while true; do
    for c in "${arr[@]}"; do
        echo -en "\r $c "
        sleep .5
    done
done

执行: 在这里插入图片描述

Copyright © ghostwritten 浙ICP备2020032454号 2022 all right reserved,powered by Gitbook该文件修订时间: 2022-06-22 15:54:13

results matching ""

    No results matching ""