Created
December 1, 2016 18:26
-
-
Save rdammkoehler/607293e3385a1e2305a4c22c15353bf1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/bash | |
| rm -f x.dat | |
| for id in $( diff new.shifts.ids old.shifts.ids | awk '{print $2}' | grep -e "^[0-9]" ); do | |
| jq ".[] | select(.id == $id)" old/shifts.jsonl | jq .updated | cut -c1-12 >> x.dat | |
| done | |
| cat x.dat | sort | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment