#!/bin/sh

# Dylan McDonald for CIS 203
# Start our counters and at nice numbers
i=1
j=201

# Write the server, gandalf, as a special case
echo -e 10.2.128.30\\tgandalf.nixrox.nis\\tgandalf >> /etc/hosts
while [  $i -lt 25 ]; do
        # Echo the host, and away we go!
        echo -e 10.2.135.$j\\tstation$i.nixrox.nis\\tstation$i >> /etc/hosts
        
        # Keep the counters running!
        let j=j+1
        let i=i+1 
done