I've recently written about using bash arrays and bash regular expressions, so here's a more useful example of using them to test IP addresses for validity. To belabor the obvious: IP addresses are 32 ...
Knowing how an IP address identifies a host on a network can be confusing. Before you begin calculating various addresses, you should know the fundamentals of IP addressing. Todd Lammle describes this ...