Question: Step 5: Save the data in an array To add data into an array, the array structure is defined as: declare -A myarray Then, given
Step 5: Save the data in an array To add data into an array, the array structure is defined as: declare -A myarray Then, given a key/value pair, the array is loaded as: myarray[$key]=$value The contents of the array can be checked using the following loop: for i in "${!myarray[@]}" do echo ${myarray[Si]}" "$i done Now that we discussed the array data structure storage, recall that you will also need to implement a file storage data structure. Step 6: Save the data in a file Above we went over the steps to save data into an array. Recall that this lab also requires that you implement your data storage by using simple text files. Above we mentioned how the array values can be examined with a loop. A while loop can also be used to loop thru the contents of a file. Once you have the data stored, whether it is in an array or in files, you will need to implement the UNIX sort command
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
