#!/usr/bin/env sh

TTY_LINE=`dmesg | grep cp210x | grep "now attached to" | tail -n 1`
for word in $TTY_LINE;
do
    TTY=$word
done
echo $TTY
