Difference between revisions of "Talk:Grabserial"
From eLinux.org
(Created page with "==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:...") |
(→quick and dirty) |
||
| Line 2: | Line 2: | ||
If you just need a timestamp and the input in one line, you can use the default UNIX tools like this: | 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; }' | cat /dev/ttyUSB0 | awk '{ print strftime("%Y-%m-%d %H:%M:%S"), $0; }' | ||
| + | --[[User:Mysli|Mysli]] 22:55, 19 January 2012 (UTC) | ||
Latest revision as of 22:55, 19 January 2012
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)