Skip to content

Instantly share code, notes, and snippets.

@rdammkoehler
Created December 1, 2016 18:26
Show Gist options
  • Select an option

  • Save rdammkoehler/607293e3385a1e2305a4c22c15353bf1 to your computer and use it in GitHub Desktop.

Select an option

Save rdammkoehler/607293e3385a1e2305a4c22c15353bf1 to your computer and use it in GitHub Desktop.
#!/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