Talk:Grabserial

From eLinux.org
Jump to: navigation, search

quick and dirty

If you just need a timestamp and the input in one line, you can use the default UNIX tools like this:

 cat /dev/ttyUSB0 | awk '{ print strftime("%Y-%m-%d %H:%M:%S"), $0; }'

--Mysli 22:55, 19 January 2012 (UTC)

There are no threads on this page yet.