Bash script for loop

This type of for bash script for loop is characterized by counting. The range is specified by a beginning (#1) and ending number (#5). The for loop executes a sequence of commands for each member in a list of items. A representative example in BASH is as follows to display welcome message 5 times with for loop:


Also published on Medium.

Leave a Reply

avatar
  Subscribe  
Notify of