Skip to content

Instantly share code, notes, and snippets.

@andrunix
Created January 23, 2013 15:37
Show Gist options
  • Save andrunix/4608270 to your computer and use it in GitHub Desktop.
Save andrunix/4608270 to your computer and use it in GitHub Desktop.
grep path
andrunix@amp-laptop~$ GREP_OPTIONS="" \grep -rn 'PATH=' ~/.zlogin ~/.zshrc ~/.bash_profile ~/.bashrc | GREP_OPTIONS="" \grep -vE '[[:alnum:]_]PATH=|PATH=.*PATH'
grep: /Users/andrunix/.zlogin: No such file or directory
/Users/andrunix/.zshrc:37:export PATH=/Users/andrunix/local/bin:/Users/andrunix/.rvm/gems/ruby-1.9.2-p290/bin:/Users/andrunix/.rvm/gems/ruby-1.9.2-p290@global/bin:/Users/andrunix/.rvm/rubies/ruby-1.9.2-p290/bin:/Users/andrunix/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/andrunix/android-sdk-mac_86/tools:/Applications/sshfs/bin:/usr/local/mysql/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment