Skip to content

Instantly share code, notes, and snippets.

@kshimo69
Created January 15, 2014 00:16
Show Gist options
  • Save kshimo69/8428535 to your computer and use it in GitHub Desktop.
Save kshimo69/8428535 to your computer and use it in GitHub Desktop.
CSV($1がタイムスタンプ、$9が累積値)から累積値の差分を出すawk
grep HOGEHOGE fuga.csv | awk -F ',' 'BEGIN{before=0} { print $1, $9 - before; before=$9; }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment