Bash Tutorial 4: Loops - For While Until

Channel:
Subscribers:
54,800
Published on ● Video Link: https://www.youtube.com/watch?v=sCmqBkz1yYY



Category:
Tutorial
Duration: 4:15
13,107 views
126


How to use Loops in Bash Script, I cover the three types of Loops: For, While, Until.
Unlike other Programming languages, with Bash the For loop works through a List rather than a Number count.

In this tutorial I show how:
0:19 List Files in a folder and search with Grep
0:45 For loop with Number count
1:26 While Loop
2:12 Until Loop
2:49 Infinite While Loop (e.g. for menus)

Bash Tutorial Playlist: http://www.youtube.com/playlist?list=PLzZ0JczEkZfkvvycruN04zx6NmYYaavQI
Bash Tutorial 3: If Then Else Elif - http://youtu.be/uYDxQ5L8zqE
Tutorial 5: Functions - http://youtu.be/kiEbj_DHB4k

Script Download: https://raw.githubusercontent.com/quidsup/bash-tutorials/master/4-Loops.sh
Wallpaper: http://quidsup.net?i=BladedgeAlt-by_Juraiko1324







Tags:
Linux
Bash
Script
Programming
Guide
Terminal
Basic
Loop
For
While
Until
List Files
Grep
Computing
Ubuntu
Mint
Debian
Arch
Fedora
Gentoo
Quids
Quidsup