摘要: 程序源码 # 使用示例: download_file https://pic.cnblogs.com/face/1275166/20180926122056.png # 参数1:文件URL download_file () { url=$1 agent="Mozilla/5.0 (Windows N 阅读全文
posted @ 2022-03-21 13:46 Freelancy 阅读(704) 评论(0) 推荐(0) 编辑
摘要: 程序源码 # 使用示例:progress 1 100 # 参数1:当前数值 # 参数2:总数值 progress () { pro=`awk 'BEGIN{printf "%d",('$1'/'$2')*100}'` spaces=`seq -s '#' $((${pro} +1)) | sed ' 阅读全文
posted @ 2022-03-21 13:38 Freelancy 阅读(78) 评论(0) 推荐(0) 编辑