Skip to content

Instantly share code, notes, and snippets.

@hkurosawa
Last active December 29, 2015 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkurosawa/7593622 to your computer and use it in GitHub Desktop.
Save hkurosawa/7593622 to your computer and use it in GitHub Desktop.
# searches launchd.plist files from launchd directories
#!/bin/bash
# searches launchd.plist files from launchd directories
grep `launchctl list | grep $1 | cut -f 3` ~/Library/LaunchAgents/* /Library/LaunchAgents/* /Library/LaunchDaemons/* /System/Library/LaunchAgents/* /System/Library/LaunchDaemons/* | cut -d ':' -f 1 | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment