Revision as of 22:53, 19 January 2012 by Mysli (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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; }'