Please fill in the blanks above. Thank You! 3) (7 points) The following shell sc
ID: 3741051 • Letter: P
Question
Please fill in the blanks above. Thank You!
3) (7 points) The following shell script is used to check if the input IP address is invalid or not. Hint: grep returns 0 ifa pattern is found. #1 /bin/bash nums-$ count nums=" # Store the number of arguments from command line - # Prints the number before sorting echo -n "Original Numbers typed:" for num in do echo-n $num done echo res=" " # Now do the sorting of numbers for n in seq 1 ?count do f Get the first int from nums min= for num do if [ then E. min=$ num; fi done res-"$res ?min" nums-echo "$nums" sed F. - done echo -n "Sorted Numbers:" echo $resExplanation / Answer
A. $#
B. ${nums[@]}
C. ${num[0]}
D. ${num[@]}
E. '0,/99999999/s/"$min"/'
F. "$min" -gt "$num"