Skip to content

Instantly share code, notes, and snippets.

@xlcommunity
Created March 11, 2015 14:06
Show Gist options
  • Save xlcommunity/22284b985fdd01ff07bd to your computer and use it in GitHub Desktop.
Save xlcommunity/22284b985fdd01ff07bd to your computer and use it in GitHub Desktop.
License Compliance Checking
#!/bin/sh
cat audit.* | grep -e '^[0-9-]' | awk '{ month = substr($1,1,7); user = $4; if (index(users[month], user) == 0) users[month] = users[month] " " user; } END { for(u in users) { print u ":" users[u] } }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment