Add a Simple LOADING BAR To Your Shell Scripts!

Поделиться
HTML-код
  • Опубликовано: 23 окт 2024

Комментарии • 57

  • @benzo522
    @benzo522 2 месяца назад +130

    Cheese@fridge lol

  • @blackIce504
    @blackIce504 7 дней назад +1

    Love it, this should jaz up my scripts that i have for things.

  • @sterlingphoenix
    @sterlingphoenix 23 часа назад

    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.

  • @kaosce
    @kaosce 2 месяца назад +29

    Would it not be simpler to write terminal_width / max_count characters instead of doing the 2 loops thing?

    • @cheesed_up
      @cheesed_up  Месяц назад +26

      This video is so old that I honestly have no idea what you are talking about - and you are probably right :)

  • @ixin645
    @ixin645 Месяц назад +3

    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)

  • @jomix282
    @jomix282 2 месяца назад +8

    Great job, very interesting, thanks for the video

  • @sharpfang
    @sharpfang 2 месяца назад +31

    echo -n for no newline.

    • @slendi9623
      @slendi9623 2 месяца назад +4

      Ain't that a gnu extension

    • @sharpfang
      @sharpfang 2 месяца назад

      @@slendi9623 Dunno, it's been over 20 years since I last used non-gnu unix-like.

    • @FsFs3mk-u9n
      @FsFs3mk-u9n 2 месяца назад +13

      He clearly stated POSIX compliance in the video, echo -n isn't

    • @martinrocket1436
      @martinrocket1436 2 месяца назад

      And for n in $(seq 5) for five repetitions with n holding the integers from 1 to 5.

    • @martinrocket1436
      @martinrocket1436 2 месяца назад

      ​@@FsFs3mk-u9n good point! Thank you!

  • @thomashenden71
    @thomashenden71 9 дней назад

    Tired of waiting for an uknown time watching forever spinning wheels? ❂
    Well - let’s MPBGA!
    "MAKE PROGRESS BARS GREAT AGAIN!"
    😄

  • @khoaho1446
    @khoaho1446 2 месяца назад +1

    Thank you sir

  • @shenmuea
    @shenmuea Месяц назад

    great video! How can I implement this in a system update script I made?

    • @cheesed_up
      @cheesed_up  Месяц назад

      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.

  • @Chemaclass
    @Chemaclass Месяц назад

    Super cool!

  • @Anonymous-pm3qz
    @Anonymous-pm3qz 23 дня назад

    is it possible to use it with arch linux's pacman ?

    • @cheesed_up
      @cheesed_up  23 дня назад +1

      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 :)

  • @null11q
    @null11q 28 дней назад +1

    Cool

  • @owenpierce
    @owenpierce 18 дней назад

    echo with -n flag won't print the trailing new line character similar to printf for anyone wondering

    • @cheesed_up
      @cheesed_up  16 дней назад

      It's not posix compliant though :/

  • @EverythingTechTime
    @EverythingTechTime 25 дней назад +1

    Looking at the thumbnail made me realize I've been writing too much brainfk

    • @cheesed_up
      @cheesed_up  25 дней назад +1

      RIP in peace - I just died of laughter.

  • @Fernando-du5uj
    @Fernando-du5uj 2 месяца назад

    Cool. Thanks

  • @Exotic69420
    @Exotic69420 2 месяца назад +1

    nice shell

  • @BestHacksForever
    @BestHacksForever Год назад +2

    thanks! i subbed!

  • @SugarBeetMC
    @SugarBeetMC 2 месяца назад +20

    for Python: pip install tqdm

    • @friedrichmyers
      @friedrichmyers 2 месяца назад

      And you will forever stay a fucking mediocre dev

    • @friedrichmyers
      @friedrichmyers 2 месяца назад +10

      Shit developers use such ways and don't learn

    • @fuzzboi
      @fuzzboi 2 месяца назад +3

      Soo good developers have to know how to display a loading bar for your shell script?😂

    • @friedrichmyers
      @friedrichmyers 2 месяца назад +12

      @@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.

    • @fuzzboi
      @fuzzboi 2 месяца назад +20

      @@friedrichmyers go and touch some grass buddy. A good developer knows what is worth spending time on and what is not.

  • @pavelyankouski4913
    @pavelyankouski4913 2 месяца назад

    ASCII stuff

  • @laughingvampire7555
    @laughingvampire7555 2 месяца назад +5

    fuck posix compliance