#!/bin/bash net=$(nmcli | head -1 | awk '{print $4}') if [[ $net == "Wired" ]]; then echo " $net" else echo " $net" fi