Changes

Jump to: navigation, search

OPS235 Lab 6 - CentOS7 - SSD

1 byte removed, 16:40, 14 June 2016
no edit summary
<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>
<br>
<code style="color:#3366CC;font-family:courier;font-size:.9em;margin-left:20px;font-weight:bold;">
<br>
&nbsp;echo "Network Information for: \"$x\":" > /root/network-info.txt<br>
&nbsp;printf '%s\n' "${$x[@]}" | tail -n +2 > /root/network-info.txt<br>
&nbsp;echo > /root/network-info.txt<br>
done<br>
<br>
13,420
edits

Navigation menu