Skip to content

Instantly share code, notes, and snippets.

@aryamccarthy
Last active January 16, 2019 04:50
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aryamccarthy/9215fa91faf66a6b609a to your computer and use it in GitHub Desktop.
Save aryamccarthy/9215fa91faf66a6b609a to your computer and use it in GitHub Desktop.
# Function lookfor
# searches current directory for given text.
# Highlights result on each line where it appears.
# Usage: lookfor someword
function lookfor() {
grep --color -nriwI "$@" .
}
@aryamccarthy
Copy link
Author

Add this to your .bash_profile file, then the line export -f lookfor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment