Skip to content

Instantly share code, notes, and snippets.

@bperel
Last active April 27, 2018 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bperel/e4cc3710f610e282b74daf94f8fa7fb9 to your computer and use it in GitHub Desktop.
Save bperel/e4cc3710f610e282b74daf94f8fa7fb9 to your computer and use it in GitHub Desktop.
Find undeclared srefs
#!/bin/bash
grep -hrEo "ui-sref='([^(']+)" src | sed "s/ui-sref='//g" | \
while read -r sref; do
echo $sref;grep -r ".state('$sref'" src
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment