Last active
April 18, 2018 13:47
-
-
Save palashkulsh/0d7ae180da385258f1453b41d3f62a02 to your computer and use it in GitHub Desktop.
find unmatched patterns
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s 'https://endpoint/orders/mktorders-49*/_mapping' | jq '.' | jq '.[].mappings.items.properties |keys[]' | sort|uniq | sed 's/"//g' | xargs -I {} sh -c "if ! grep -q {} config/staging/elasticsearch_mapping.txt ; then echo {} ;fi;" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment