Changes

Jump to: navigation, search

OPS235 Lab 6

280 bytes added, 11:04, 27 June 2016
no edit summary
done < $1<br>
</code>
<br><br>
<ol><li value="6">Finally, we will generate a web-page document, use a loop to printout the results of the data (stored in an array) and open the web-page document in the '''firefox''' web-browser.</li></ol>
<code style="color:#3366CC;font-family:courier;font-size:.9em;margin-left:20px;font-weight:bold;">
<br>
for xcat > /root/network-info.html <<+<br><!DOCTYPE html><br><html><br>&nbsp;<head><br>&nbsp: &nbsp;<title>Network Information</title><br>&nbsp;</head><br>do&nbsp;<body><br>&nbsp: &nbsp;echo "<h3>Network Information for: \$1</h3><br>&nbsp: &nbsp;<table cellpadding="$x\5" cellspacing="0" border=":1" > /root/network-info.txt<br>&nbsp+ for((x=0; x<$index;printf '%s\n' x++))do echo "<tr><td>${network[$x[@]}</td></tr>" | tail -n +2 >> /root/network-info.txt<brhtmldone cat >&nbsp;echo > /root/network-info.txthtml <<+ <br/table>done <br/body><br/html>rm + /tmpbin/*firefox /root/network-info.$$ html 
</code>
<br><br>
13,420
edits

Navigation menu