#!/bin/bash folder_path="vpn" for file in "$folder_path"/*; do if [[ -f "$file" ]]; then nmcli con import type openvpn file ./$file fi done