Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neilmartin83/ff99c62e1a150c9b2afb8d6159c4cfb4 to your computer and use it in GitHub Desktop.
Save neilmartin83/ff99c62e1a150c9b2afb8d6159c4cfb4 to your computer and use it in GitHub Desktop.
#!/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