Skip to content

Instantly share code, notes, and snippets.

@JohnPreston
Created October 21, 2016 10:55
Show Gist options
  • Save JohnPreston/b190ec124eccfea51f9fab7edf1609a6 to your computer and use it in GitHub Desktop.
Save JohnPreston/b190ec124eccfea51f9fab7edf1609a6 to your computer and use it in GitHub Desktop.
#!/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