03 Shell Script Spinner Animation Tutorial

  Рет қаралды 36,126

Kris Occhipinti

Kris Occhipinti

Күн бұрын

Пікірлер: 27
@gregoriodia
@gregoriodia 3 жыл бұрын
spinner=('\' '|' '/' '-') spin() { echo -ne " " while true do for s in ${spinner[@]} do echo -ne "\b${s}" sleep 0.2 done done } echo -ne "Loading: " spin This one works without requiring separate line. You an adopt your script to use that too.
@_JoeMomma
@_JoeMomma 3 жыл бұрын
Thank you! this added some extra flair in my college project!
@TheFakeVIP
@TheFakeVIP 7 жыл бұрын
You should check out the : command. It's just a : that always returns with an exit status of 0, so you can use it instead of [ 1 ]
@warronfrench8163
@warronfrench8163 5 жыл бұрын
Thanks Kris, your script here pointed out my error in my script. I was using echo -en "\b" the \b wasn't doing it for me, but the prefixed " " was very helpful indeed!
@chesterules
@chesterules 6 жыл бұрын
Doom also used the dots while loading, which I also always enjoyed somehow. BTW, John Romero is about to release a new episode 5 for the original doom.
@poojarati4387
@poojarati4387 3 жыл бұрын
Which software is used to do this ??
@CaraMello21
@CaraMello21 7 жыл бұрын
شكرا جزيلا لك سيد كريس , أنت فعلا نموذج راقي و نحن نحبك , أرجو أن تستمر و نحن ندعمك
@CandiceSaffield
@CandiceSaffield Ай бұрын
???
@gordonschamway3555
@gordonschamway3555 7 жыл бұрын
Instead of $! to get the pid, you can use: gprep , this will print out the PID of the give application. So, the command would look something like this: kill "$(pgrep )"
@johnwt7333
@johnwt7333 4 жыл бұрын
Then you could not run another in another tab at the same time.
@jan_harald
@jan_harald 7 жыл бұрын
why the "get last id" example didn't work is because bash thought you wanted to show variable called "!"
@macieks3604
@macieks3604 7 жыл бұрын
The function Spinner can be stopped with ctrl C but after adding copy function to the script I can't stop it that way, have to close the terminal. Any ideas as to why that is happening? Is it because the spinner function is nested inside copy function...?
@雨緑-q4t
@雨緑-q4t 2 жыл бұрын
This is great. Thank you so much!
@aviroxi
@aviroxi 4 жыл бұрын
5:41 like your smile :)
@Alain9-1
@Alain9-1 3 жыл бұрын
i've enjoyed the tutorial thnx
@alfredoeduardo3990
@alfredoeduardo3990 7 жыл бұрын
How can I get the script for that application? thanks
@gheretmaaar7652
@gheretmaaar7652 3 ай бұрын
The code is on the screen, copy it into your own script.... the author actually walks you through this
@snowkiterdude
@snowkiterdude 7 жыл бұрын
I was playing around with why echo $! was not working and found that $! is pid for background commands only. so if you run... echo test & echo $! ...will work. Thanks for the vid! playing with spinner was fun!
@jhosnatas
@jhosnatas 7 ай бұрын
Amazing
@subhamjack605
@subhamjack605 5 жыл бұрын
Great,Thanks
@sriharsha8920
@sriharsha8920 6 жыл бұрын
can any one give the full code here pls?
@gheretmaaar7652
@gheretmaaar7652 3 ай бұрын
It's on the screen
@thesunexpress
@thesunexpress 3 жыл бұрын
Pac-Man: ( Coooo .Cooo ..Coo ...Co ....C )
@harshilshah8983
@harshilshah8983 3 жыл бұрын
How to? after my sleep process is completed, I want spinner animation to disappear and instead of that print Done on same location e.g. Copying files .............................................. Copying files Done
@harshilshah8983
@harshilshah8983 3 жыл бұрын
Anyone reply fast!! I am doing college project and I need solution as soon as possible.
@MishaOpstal
@MishaOpstal 5 жыл бұрын
lol my local ip adress is the same as yours (192.168.1.2)
04 Shell Script Calling External Functions Tutorial
3:26
Kris Occhipinti
Рет қаралды 7 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
Real World Programming with BASH Shell Scripts
28:24
Kris Occhipinti
Рет қаралды 5 М.
Progress Bars - Computerphile
13:50
Computerphile
Рет қаралды 81 М.
Transform Your Scripts With Bash Simple Curses
16:15
DistroTube
Рет қаралды 113 М.
My 5 Favorite Linux Shell Tricks for SPEEEEEED (and efficiency)
11:06
BASH scripting will change your life
14:18
NetworkChuck
Рет қаралды 1 МЛН
Let's Write A Script! | How To Create BASH Scripts In Linux
49:45
Joe Collins (EzeeLinux)
Рет қаралды 27 М.
Creating Command Line Menus with Shell Scripts
14:09
theurbanpenguin
Рет қаралды 83 М.