Skip to content

Two awk scripts - one for updating Ubuntu 14 network interfaces file, one for reading the interfaces file

License

Notifications You must be signed in to change notification settings

leonsio/Network-Interfaces-Script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Network-Interfaces-Script

Read and update awk scripts for Ubuntu /etc/network/interfaces file.

readInterfaces.awk -- parse and output interface configuration
changeInterface.awk -- modify interfaces file

Parse Interfaces Script

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.

About

Two awk scripts - one for updating Ubuntu 14 network interfaces file, one for reading the interfaces file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Awk 100.0%