13,420
edits
Changes
no edit summary
done<br>
</code>
<ol><li value="6">Finally, we will use a loop to printout the results of the data (stored in the Associative Arrays) in a report file called: /root/network-info.txt
The command at the end is a trick to remove all temporary files that have the same extension as the current PID number, therefore, it is unique. Add the following content to your shell script editing session:</li></ol>
rm /tmp/*.$$
</code>
<br><br>
<ol><li value="7">Give this shell script execute permissions and run this shell script. What do you notice from the report that the shell script generated?<br><br></li><li>The the wget command to download, set permissions and run the following script to see the usefulness of arrays: '''URL'''</li></ol>