【发布时间】:2018-06-30 13:49:15
【问题描述】:
例如,我有这个for loop,它需要很长时间才能完成,所以我想使用tqdm 来获得一个像python 一样的漂亮进度条。但我找不到任何方法?
for f in `find mydir -name *.jpg -print`; do cp $f images/${f//\//_}; done
如何获得此循环的进度条?
【问题讨论】:
-
更好的是,在这里搜索
[linux] find xargs parallel。假设您有多个内核和额外的内存,您可以同时处理多个文件。祝你好运。
标签: bash loops for-loop progress-bar tqdm