Skip to content

Instantly share code, notes, and snippets.

@hvisage
Last active July 4, 2017 13:16
Embed
What would you like to do?
Take dead man snitches list into csv for reports
#!/bin/bash
TAG=aquacheck
API=$1
curl -su ${APIKEY}: https://api.deadmanssnitch.com/v1/snitches \
| jq -r 'sort_by(.status)|.[] | select(.tags[] | contains("${TAG}")) |[.name, .interval, .checked_in_at, .status]|@csv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment