Created
November 21, 2017 09:41
-
-
Save hkskoglund/1204bf7537f5713f22b28e1a9490e405 to your computer and use it in GitHub Desktop.
Filter ping log from DCS-936 camera to CSV-format with timestamp in ms and ping time
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
cat ~/Nedlastinger/ipcamping.log | tail -n 9600 | cut -d' ' -f 3,10 | cut -b 2-11,25- | tr = , | (IFS=","; while read time ms ; do time=$(( $time * 1000 + 3600000)); echo "$time,$ms"; done) | tee ~/Nedlastinger/filtered.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment