标签云

微信群

扫码加入我们

WeChat QR Code

I'm trying to build a simple progress bar script which will display a bar as well as current action in progress.With help of echo -ne "[||...] Processing ${file_name}\r" i can display the progress bar as:[||||||||............] Processing file1However i'm expecting output something like this:Processing file1[||||||||............]Note: Both are seperate lines and i want to update them both as my script progress.Is there any way to achieve this?


The solution works fine for what i asked for :-) can u also suggest how to erase & reprint? because with current solution the problem is If it prints barrr first and next to print is foo it prints foorr

2019年04月22日13分24秒

I answered that ("clears" is the same as "erase").

2019年04月22日13分24秒

SumitNalawade Sure, see update

2019年04月22日13分24秒