Skip to content

Instantly share code, notes, and snippets.

@hkskoglund
Created November 21, 2017 09:41
Show Gist options
  • Save hkskoglund/1204bf7537f5713f22b28e1a9490e405 to your computer and use it in GitHub Desktop.
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
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