Last active
April 27, 2018 13:18
-
-
Save bperel/e4cc3710f610e282b74daf94f8fa7fb9 to your computer and use it in GitHub Desktop.
Find undeclared srefs
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
#!/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