Skip to content

Shell Script to Split IP Address into Separate Octets

The following shell script splits an IP into separate Octets into its own variables. This method can be used for any script which needs to take each octet into account, such as generating firewall rules etc…

comments powered by Disqus