How to add a progress bar to a shell script?

后端 未结 30 2816
情歌与酒
情歌与酒 2020-11-22 05:48

When scripting in bash or any other shell in *NIX, while running a command that will take more than a few seconds, a progress bar is needed.

For example, copying a b

30条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 06:28

    I would also like to contribute my own progress bar

    It achieves sub-character precision by using Half unicode blocks

    Code is included

提交回复
热议问题