#!/bin/bash set -x SERIAL_DEV=$1 DEV_NAME=$(basename "${SERIAL_DEV}") tio -m INLCRNL --log --log-file "ext-dir/serial-log.${DEV_NAME}" "${SERIAL_DEV}"