Read and update awk scripts for Ubuntu /etc/network/interfaces file.
readInterfaces.awk -- parse and output interface configuration
changeInterface.awk -- modify interfaces file
awk -f readInterfaces.awk <interfaces file> <device=ethX>
For usage sample and more information, see this blog.
## Update Interfaces Script
awf -f changeInterface.awk <interfaces file> <device=ethX> <name=value>
For usage sample and more information, see this blog. For updating DNS entry, see this blog.