Generate a /etc/hosts file from the command line

This is a simple example of how you can populate a /etc/hosts file with 100 IPs and hosts from the command line

# N=1; for i in $(seq -w 100); do echo "192.168.99.$N host$i"; P=$(expr $P + 1); done >> /etc/hosts

The result file /etc/hosts host001 host002 host003 host004 host005 host006 host007 host008 host009 host010 host011 host012 host013 host014 host015 host016 host017 host018 host019 host020