Bash Scripting for Beginners: Complete Guide to Getting Started - While Loops (Part 7)

preview_player
Показать описание
Looping isn't just something you do in an unknown city while driving with a broken GPS - looping is a very important concept in programming and scripting languages. And that's what we'll go over in this episode of this bash scripting series. Specifically while loops, which allow you to continually execute something as long as some sort of condition is met. In this video, you'll learn all about this so why not just give that play button a click and start learning?

*Linux-related Podcasts*

*Linux-related Gifts*

*Time Codes*
00:00 - Intro
00:50 - An example Bash Script that utilizes a While Loop
05:19 - Another example of While Loops on the Linux Shell
08:57 - Improving our Bash Script even Further

*Recommended stand-alone videos from Learn Linux TV*

*Stand-Alone Tutorials*

*Recommended Courses from Learn Linux TV*

*Linux-related Podcasts*

*Fun Linux-related Projects*

OTHER BASH SCRIPTING SERIES EPISODES

*Official Learn Linux TV Sites*

*FAQ*

Disclaimer: LearnLinuxTV provides technical content on YouTube that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). LearnLinuxTV is not responsible for any damages that may arise from any use of this content. The viewer is expected to follow best judgement and to make his/her/their best decisions while working with production or non-production systems and hardware.

#devopstraining #cloudcomputing #bashscripting
Рекомендации по теме
Комментарии
Автор

Can't properly express how grateful I am for this series. Would love if you ever felt inclined to do a more advanced + longer course on networking, server management, and security, would GLADLY pay for that.

gitgudsec
Автор

One of the best channels here on YouTube, i'll give you that.

Fallyoou
Автор

I love the fact of the small assignment at the end of this lesson 😊 I just made my small math quiz with while loops and it worked perfectly!

whyYUbee
Автор

This series is amazing and has helped me understand many concepts easily. He is an awesome teacher. Thanks so much for creating this wonderful content

wendyudensi
Автор

I thought that Jay was awesome when I started watching this bash series. Now I KNOW that Jay is awesome! I'm thrilled to be learning here and am inspired with many new programming ideas. Thank you Jay!

LinXnerd
Автор

Please please do an intermediate/advanced tutorial for instance while loop with arithmetic functions and conditions 😢 you're such a good teacher!

sippinondroppromotions
Автор

This is a great series packed with tons of great examples.

christopherjohns
Автор

Love the series! Love your channel! Thank you!

mago
Автор

myvar=$(($myvar+1))
This part is rather unclear to me. Usually you can set a number to a variable without using a $ before the number but here you have to start with a $-sign. It is not explained why. Clearly the outer () are for the first $-sign (scope) but why do you have to put the $myvar+1 inbetween ()?

peterjansen
Автор

You might have added that CTRL-C will stop a runaway loop. 🙂

FHollis-gwcc
Автор

this is kind of helpful code to let you understand it more

counter=0

while [ $counter -le 10 ]
do
echo "$counter * 7 = $(( $counter * 7 ))"
counter=$(( counter+1 ))
done

codermomo
Автор

Hi. Can you explain the subshell a bit in detail? How come you used $(date)
What is the main reasoning and is this the only way to get the date command in this particular example?
Thanks.

ZaG-yofd
Автор

Hello, how do you loop also the echo for The file no longer exists.?

Hanesy
Автор

Did anyone else have an issue with their results not printing out? The script ran like it was meant to but the numbers didn't appear where they were suppose to, as in there were lines of results with no numbers occupying them.

MasonMizell
Автор

The videos are great but can you please to slow down more? Some of us don't understand English fast as others XD

frankenweeny
Автор

in if-else video, you forget to explain about else-if statements.

vinamrajha
Автор

Am I the only one who's never found a real world use for while loops? At least one where it's actually the best way to do something. Most of the time it's better to use a for loop because for loops are easier to control and are more readable.

wheezybackports
Автор

You're leaving important concepts unexplained while explaining simple things over and over :(
For e.g. Why we have to use subshell and (( to override a variable?

Cavema