#!/bin/bash ts "%H:%M:%.S" < /dev/ttyUSB0 > test.log