Run this script and redirect the output to an HTML file.
#!/bin/ksh
#
# Create a HTML disk map of PP's
# Simulates the manual labour performed to create
# the same map in Excel.
#
# Original created 1/7/2004 by Bill Verzal (bjverzal@yahoo.com)
#
# For best results, redirect output to a .htm/.html file.
#
# This version modified from original by
# Frank Chiavoni <Frank.Chiavoni@OIT.STATE.NJ.US>
#
#
# Check command line args
#
if [ "$#" -eq "0" ] ; then
echo "Please specify one or more hdisks"
exit 1
fi
#
i01=" 1 2 3 4 5 6"
i02="123456789012345678901234567890123456789012345678901234567890"
colors="#f2c8d0 #2d970b #2e0c7f #6b8a76 #45c53a #37dfb1 #b49618 #0507d6 #32525f #b42363 #84ed57 #c359b7 #103660 #45ec3d #324565 #940964 #51b538"
#
# row 1 = 1-60
# row 2 = 61-120
# and so on
#
# Create an array of single characters for display purposes
#
arrayCNT=1
for colour in $colors
do
colorArray[${arrayCNT}]=$colour
arrayCNT=`expr $arrayCNT + 1`
done
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.