Merging Multiple kubeconfig Files into One

I obtained a new kubeconfig - kubeconfig_new from az aks get-crednetials
, and I want to merge it into the existing ~/.kube/config
. How should I do?
az aks

Backup existing kubeconfig
#!/bin/bash
cp ~/.kube/config ~/.kube/config-backup.$(date +"%Y%m%d-%H%M")
A one-line command merge
#!/bin/bash
# KUBECONFIG=~/Downloads/kubeconfig_a:~/Downloads/kubeconfig_b:~/.kube/config kubectl config view --flatten > merged.config
export KUBECONFIG=/Users/pichuang/ms-workspace/sunshine/air/kubeconfig_aks-ice-jpe:~/.kube/config
echo $KUBECONFIG
kubectl config view --flatten > ~/.kube/merged.config
mv ~/.kube/merged.config ~/.kube/config
Switch Difference Context
#!/bin/bash
kubectl config get-contexts
kubectl config use-context
kubectl config current-context