#!/bin/bash device_number=1 echo $(mconnectctl list-devices | sed -n '2 p' | awk -v N=$device_number '{print $N}')