I want to quickly import ovpn files into NetworkManager and append my login details into the final conf file that NetworkManager will use. Basically turning this clientdev tunproto udpremote italy.privateinternetaccess.com 1197resolv-retry infinitenobindpersist-keypersist-tuncipher AES-256-CBCauth SHA256tls-clientremote-cert-tls serverauth-user-passcomp-lzoverb 1reneg-sec 0crl-verify crl.rsa.4096.pemca ca.rsa.4096.crtdisable-occinto this[connection]id=Singaporeuuid=<unique id gen by uuidgen>type=vpnpermissions=secondaries=[vpn]connection-type=passwordauth=SHA256password-flags=0remote=sg.privateinternetaccess.com:1197cipher=AES-256-CBCcomp-lzo=yesreneg-seconds=0username=<username>remote-cert-tls=serverca=ca.rsa.4096.crtdev=tunservice-type=org.freedesktop.NetworkManager.openvpn[vpn-secrets]password=<password>[ipv4]dns-search=method=auto[ipv6]addr-gen-mode=stable-privacydns-search=method=autoNormally when NetworkManager imports the provided OVPN file, it outputs this.[connection]                                                                                                                                                                                                     id=Irelanduuid=174fa5b0-0b49-40bc-a301-756acd341c12type=vpnpermissions=secondaries=[vpn]connection-type=passwordauth=SHA256password-flags=1remote=ireland.privateinternetaccess.com:1197cipher=AES-256-CBCcomp-lzo=yesreneg-seconds=0remote-cert-tls=serverca=ca.rsa.4096.crtdev=tunservice-type=org.freedesktop.NetworkManager.openvpn[ipv4]dns-search=method=auto[ipv6]addr-gen-mode=stable-privacydns-search=method=autoI can quickly change passwords-flags via sed, but I'm at a lost on how to append the username and [vpn-secrets] section. Any help would be appreciated. 
Scripting a way to quickly import OVPN files to NetworkManager on Ubuntu
linux;ubuntu;openvpn;vpn