Chapter 9. User data input processing


Chapter 9. User data input processing

1. Command Line parameter input Among the methods of passing input data to a script, the basic method is to directly pass the input data to the command line. You can pass it directly to the command line as shown below. $./test 10 20 read parameter Bash Shell allocates a special variable called positional parameter to process the data input on the command line as above. This variable can be assigned from $0 to $9, where the name of the script file is stored in number 0, and the values entered in ...


#1 #Script #Receiving #read #How #Get #Example #Distinguish #count #7 #6 #5 #4 #3 #2 #Using

원문링크 : Chapter 9. User data input processing