while loop in shell scripting | until loop in shell scripting | shell script to loop till user wants

preview_player
Показать описание
Hello guys , This video is about understanding while loop and until loop in shell scripting , along with creating a shell script that will loop through some task as long as user wants to. I had started with explaining the structure of while loop , followed by multiple examples on while loop . After that , I discussed about creating infinite loop using while loop . After while loop , I elaborated the structure of until loop and how until loop works , followed by multiple examples on until loop . Next , I explained the inifinite loop using until loop. I also dicussed the the importance of exit status code while checking for condition . At last , I create a shell script step by step , which can be used to loop through a certain task as long as user wants to using while loop and until loop.
Topics covered in this video are :
- while loop in shell scripting
- until loop in shell scripting
- examples on while loop in shell scripting
- examples on until loop in shell scripting
- how while loop work in shell scripting
- how until loop work in shell scripting
- difference between while loop and until loop in shell scripting
- shell script to loop through commands as long as user wants to in shell scripting
- terminate a loop when user wants in shell scripting

#while #until #loop #shell #script
_____________________________________________________
Support My Work On ...

_____________________________________________________
Connect With Me On ...

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

My shell script scenario:-

It check bill_status for previous month from Bill_status table .
Bill_status table contain status column with unique value i.e. ( C for completed and Other than C for not completed).

My expectation:- (my script need to run daily till status=C, if we get Status=C then no need to run for remaining day of this month.
And start again same script with next month 1st day to till status=C)

Example: ---
If I found status other than C then this script will need to run daily till we get status C .

And If i found status C today i.e. 23/Apr/22 then it would not check status for remaining day of this month. It should Start again with next month first day to till status=C and so on .


Kindly provide suggestion or logic for above expectation

pravingaddam
welcome to shbcf.ru