#!/bin/sh if [ -z "$1" ]; then echo "Usage: $0 " exit 1 fi curl -XGET 'http://stream.elevate.at:9200/'"$1"'/dataupdate/_search?search_type=count&pretty' -d @last-update.json