shell programming - loop and function

shell programming of the loop and function

case grammar

Case:

 

 

for loop

Written 1

 

 Writing 2

 

 

while loop

 

 

example:

Batch output user

 

 

method:

Direct method calls the function name, without brackets

Guess you like

Origin www.cnblogs.com/zhuyunlong/p/11923362.html