executable_elasticsearch 205 B

1234567891011
  1. #!/usr/bin/env bash
  2. ELASTICSEARCH_ENDPOINT="http://es.intr:9200"
  3. case "$1" in
  4. shards)
  5. command curl "${ELASTICSEARCH_ENDPOINT}/_cat/shards" \
  6. | sort --version-sort
  7. ;;
  8. esac