Last active
February 15, 2017 01:20
-
-
Save andreydung/c61d77be5604ce76632553f06f4d8fb2 to your computer and use it in GitHub Desktop.
Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% OSX | |
cat /dev/cu.usbmodem1421 | gawk '{x="'"`gdate +%s%3N`"'"; printf "%s,%s\n",x,$0 }' | tee data.csv | |
% Ubuntu | |
cat /dev/cu.usbmodem1421 | awk '{x="'"`date +%s%3N`"'"; printf "%s,%s\n",x,$0 }' | tee data.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment