#! /bin/sh set -e dir_bin="$1" echo 'show \n quit' | bluetoothctl | "$dir_bin"/khatus_parse_bluetoothctl_show