Skip to content

Instantly share code, notes, and snippets.

@cmattoon
Created February 6, 2017 17:57
Show Gist options
  • Save cmattoon/67fbf85f6ca9f2631101d47feccc2a1b to your computer and use it in GitHub Desktop.
Save cmattoon/67fbf85f6ca9f2631101d47feccc2a1b to your computer and use it in GitHub Desktop.
# Display all log entries for each MAC address
cat /var/log/api-fetcher.log | grep 'Sending Group SMS for'
# Get a list of MAC addresses only
cat /var/log/api-fetcher.log | grep 'Sending Group SMS for' | cut -d' ' -f 9
# Get a list of unique MAC addresses
cat /var/log/api-fetcher.log | grep 'Sending Group SMS for' | cut -d' ' -f 9 | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment