1: #!/usr/bin/env bash 2: 3: nmcli -a c show | 4: grep aa.net.uk | 5: sed 's/[ ]* / /g' | 6: cut -d ' ' -f 3 | 7: while read -r line 8: do 9: test -n "$line" && nmcli -a c up "$line" 10: done 11: 12: pi