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.
@_JoeMomma3 жыл бұрын
Thank you! this added some extra flair in my college project!
@TheFakeVIP7 жыл бұрын
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 ]
@warronfrench81635 жыл бұрын
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!
@chesterules6 жыл бұрын
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.
@poojarati43873 жыл бұрын
Which software is used to do this ??
@CaraMello217 жыл бұрын
شكرا جزيلا لك سيد كريس , أنت فعلا نموذج راقي و نحن نحبك , أرجو أن تستمر و نحن ندعمك
@CandiceSaffieldАй бұрын
???
@gordonschamway35557 жыл бұрын
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 )"
@johnwt73334 жыл бұрын
Then you could not run another in another tab at the same time.
@jan_harald7 жыл бұрын
why the "get last id" example didn't work is because bash thought you wanted to show variable called "!"
@macieks36047 жыл бұрын
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...?
@雨緑-q4t2 жыл бұрын
This is great. Thank you so much!
@aviroxi4 жыл бұрын
5:41 like your smile :)
@Alain9-13 жыл бұрын
i've enjoyed the tutorial thnx
@alfredoeduardo39907 жыл бұрын
How can I get the script for that application? thanks
@gheretmaaar76523 ай бұрын
The code is on the screen, copy it into your own script.... the author actually walks you through this
@snowkiterdude7 жыл бұрын
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!
@jhosnatas7 ай бұрын
Amazing
@subhamjack6055 жыл бұрын
Great,Thanks
@sriharsha89206 жыл бұрын
can any one give the full code here pls?
@gheretmaaar76523 ай бұрын
It's on the screen
@thesunexpress3 жыл бұрын
Pac-Man: ( Coooo .Cooo ..Coo ...Co ....C )
@harshilshah89833 жыл бұрын
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
@harshilshah89833 жыл бұрын
Anyone reply fast!! I am doing college project and I need solution as soon as possible.
@MishaOpstal5 жыл бұрын
lol my local ip adress is the same as yours (192.168.1.2)