Created
January 15, 2014 00:16
-
-
Save kshimo69/8428535 to your computer and use it in GitHub Desktop.
CSV($1がタイムスタンプ、$9が累積値)から累積値の差分を出すawk
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
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