Love it, this should jaz up my scripts that i have for things.
@kaosce3 ай бұрын
Would it not be simpler to write terminal_width / max_count characters instead of doing the 2 loops thing?
@cheesed_up2 ай бұрын
This video is so old that I honestly have no idea what you are talking about - and you are probably right :)
@ixin6452 ай бұрын
i was thinking of achieving that with some kind of a buffer for the current tty and using clear to update it to the next one (instead of remembering cursor position)
@jomix2823 ай бұрын
Great job, very interesting, thanks for the video
@sharpfang3 ай бұрын
echo -n for no newline.
@slendi96233 ай бұрын
Ain't that a gnu extension
@sharpfang3 ай бұрын
@@slendi9623 Dunno, it's been over 20 years since I last used non-gnu unix-like.
@FsFs3mk-u9n3 ай бұрын
He clearly stated POSIX compliance in the video, echo -n isn't
@martinrocket14363 ай бұрын
And for n in $(seq 5) for five repetitions with n holding the integers from 1 to 5.
@martinrocket14363 ай бұрын
@@FsFs3mk-u9n good point! Thank you!
@khoaho14463 ай бұрын
Thank you sir
@Chemaclass2 ай бұрын
Super cool!
@owenpierceАй бұрын
echo with -n flag won't print the trailing new line character similar to printf for anyone wondering
@cheesed_upАй бұрын
It's not posix compliant though :/
@owenpierce9 күн бұрын
@@cheesed_up True 😢
@thomashenden71Ай бұрын
Tired of waiting for an uknown time watching forever spinning wheels? ❂ Well - let’s MPBGA! "MAKE PROGRESS BARS GREAT AGAIN!" 😄
@cheesed_upАй бұрын
I love this!
@null11q2 ай бұрын
Cool
@shenmuea2 ай бұрын
great video! How can I implement this in a system update script I made?
@cheesed_up2 ай бұрын
I think there should be info about this in the readma (see description for the link to the project). But essentially, you copy these functions to your script and call them at appropriate times.
@sterlingphoenixАй бұрын
This is the third time I've seen someone tough filename before editing it... and I'm not sure why. vi (or any other editor) will happily save the new file for you.
@BestHacksForever2 жыл бұрын
thanks! i subbed!
@Anonymous-pm3qzАй бұрын
is it possible to use it with arch linux's pacman ?
@cheesed_upАй бұрын
Hmm, not sure what you mean. Pacman has it's own implementation built in - and it's probably written in C, not in shell script. I hope I answered your question, sorry if I misunderstood it :)
@Exotic694203 ай бұрын
nice shell
@SugarBeetMC3 ай бұрын
for Python: pip install tqdm
@friedrichmyers3 ай бұрын
And you will forever stay a fucking mediocre dev
@friedrichmyers3 ай бұрын
Shit developers use such ways and don't learn
@fuzzboi3 ай бұрын
Soo good developers have to know how to display a loading bar for your shell script?😂
@friedrichmyers3 ай бұрын
@@fuzzboi Good developers have to know that it is stupid to use too many packages when simple logic can do the work. Remember what happened to leftPad? Become a good developer and then bother replying.
@fuzzboi3 ай бұрын
@@friedrichmyers go and touch some grass buddy. A good developer knows what is worth spending time on and what is not.
@EverythingTechTimeАй бұрын
Looking at the thumbnail made me realize I've been writing too much brainfk