Created
October 21, 2016 10:55
-
-
Save JohnPreston/b190ec124eccfea51f9fab7edf1609a6 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
# quick and dirty way to filter out items from JSON file (my use-case: CF template resources) | |
grep vpc prod-VPC.json | egrep -v '(Ref|DependsOn)' | grep \{ | sed 's/[^0-9a-zA-Z]//g' | uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment