Created
July 22, 2019 17:53
-
-
Save lordcirth/dae94a42df5cfc6679e17ef0da8d1104 to your computer and use it in GitHub Desktop.
Salt jinja script
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 | |
DIR=$1 | |
DIR=${DIR:=.} | |
grep -crIHT '{[{%]' --exclude-dir ".git" $DIR | sort -n -t: -k2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment