Skip to content

Instantly share code, notes, and snippets.

@sokil
Created September 11, 2020 13:53
Show Gist options
  • Save sokil/52652021802c310f15e9dc2ef9fe5ecc to your computer and use it in GitHub Desktop.
Save sokil/52652021802c310f15e9dc2ef9fe5ecc to your computer and use it in GitHub Desktop.
ark split
2020-01-01 12:13:14 8
2020-01-01 12:13:14 7
2020-01-01 12:13:14 8
2020-01-01 12:13:14 9
cat file | awk -F' ' '{split($1, date, "-"); print date[1] "-" date[2] "\t" $3}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment