Chapter 8 Detailed Structed Shell Command


Chapter 8 Detailed Structed Shell Command

1. For command The For command is very useful when dealing with repetitive tasks. The usage syntax is as follows. . for var in list do commands done Repetitive variable input must be provided through a list. Enter the commands to be executed between do and done. read variable value from list One of the ways to use a list is to list values by separating them with a space as shown below. #! /bin/bash #Example of using list in for statement for test in seoul busan daegu daejun incheon kwangju do ec...


#Example #excute #read #Reading

원문링크 : Chapter 8 Detailed Structed Shell Command