root@ubuntu:~/Desktop/Network-Interfaces-Script-master# awk -f changeInterface.awk /etc/network/interfaces device=ens33 action=add mode=static address=192.168.239.149 netmask=255.255.255.0 gateway=192.168.239.254
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto ens33
iface ens33 inet static
address 192.168.239.149
netmask 255.255.255.0
gateway 192.168.239.254
root@ubuntu:~/Desktop/Network-Interfaces-Script-master# awk -f changeInterface.awk /etc/network/interfaces device=ens34 action=add mode=static address=192.168.1.1 netmask=255.255.255.0
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto ens33
iface ens33 inet static
address 192.168.239.149
netmask 255.255.255.0
gateway 192.168.239.254
auto ens34
iface ens34 inet static
netmask 255.255.255.0
address 192.168.1.1
root@ubuntu:~/Desktop/Network-Interfaces-Script-master# awk -f changeInterface.awk /etc/network/interfaces device=ens33 action=add mode=static address=192.168.239.149 netmask=255.255.255.0 gateway=192.168.239.254
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto ens33
iface ens33 inet static
address 192.168.239.149
netmask 255.255.255.0
gateway 192.168.239.254
USEFUL AWK ~~~