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