Created
September 22, 2011 14:30
-
-
Save dsimard/1234911 to your computer and use it in GitHub Desktop.
Find in all files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Clone this gist | |
git clone git://gist.github.com/1234911.git ~/your/path/to/faf | |
# Change rights | |
chmod 755 ~/your/path/to/faf/fah.sh | |
# Add this line to your ~\.bashrc | |
alias faf='~/your/path/to/faf.sh' | |
# Close your terminal and open a new one |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
echo "You must include a regex to search. faf something" | |
exit 1; | |
fi | |
grep -r -n -i $1 --exclude=*.log $PWD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment