Skip to content

Instantly share code, notes, and snippets.

@LoganDark
Last active September 13, 2018 16:21
Show Gist options
  • Save LoganDark/ff8ea5fedb5dada6187a07a1ad4aff57 to your computer and use it in GitHub Desktop.
Save LoganDark/ff8ea5fedb5dada6187a07a1ad4aff57 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Print a list of third-party kexts your system includes. Output is made for Markdown.
kextstat | grep -v com.apple | egrep -o '\S+ \S+ \S+ <(\d+\s+)*\d>$' | egrep -o '^\S+' | tr '\n' ',' | sed 's/,/`, `/g' | sed 's/`, `$//g' | sed 's/^/`/' | sed 's/$/`/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment