Created
August 2, 2017 09:35
-
-
Save neilmartin83/ff99c62e1a150c9b2afb8d6159c4cfb4 to your computer and use it in GitHub Desktop.
This file contains 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 | |
if [ -f "/Library/Application Support/Microsoft/scep/logs/stats.onaccess" ] ; then | |
COUNT=$( cat "/Library/Application Support/Microsoft/scep/logs/stats.onaccess" | grep infected | cut -d' ' -f2 ) | |
else | |
COUNT="File Missing" | |
fi | |
echo "<result>$COUNT</result>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment