小编use*_*713的帖子

while 在 bash 中循环直到文件大小不变

我正在尝试使用 bash 脚本在循环中执行以下操作

file_size = 0
temp_size = 1
output_file
while (file_size != temp_size)
     temp_size = file_size
     download file
     append to output_file if possible
     file_size = sizeof(output_file)
Run Code Online (Sandbox Code Playgroud)

谢谢!

bash bash-scripting

-1
推荐指数
1
解决办法
1676
查看次数

标签 统计

bash ×1

bash-scripting ×1