Bash script while loop

Bash script while loop is one of the most fundamental and powerful constructs computing because it allows us to repeat a set of commands, as many times as we want, upon a list of items of our choosing. The loop is how we make the computer do that repetitive work

while-loop is a variation of the above, but is safer for reading lines from a file:

A while loop with interactive

or in .sh file

 


Also published on Medium.

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
admin Recent comment authors
  Subscribe  
newest oldest most voted
Notify of