#!/usr/bin/env bash PATH="$PATH:$HOME/src/garbit/lib/facebook-event-scraper/bin" if [ "$1" == "" ]; then echo "This script takes in a path to a JSON file containing an Array."; exit 0; fi cat $1 \ | get-hosts-from-event-nodes \ | flatten-array \ | get-pages-from-hosts \ | unique-by-id \ | remove-profile-picture