Created
September 27, 2013 14:23
-
-
Save Hettomei/6729371 to your computer and use it in GitHub Desktop.
Une fonction que j'utilisais avant de connaitre Ack, placé dans le .zshrc
This file contains 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
##find text 'test' il all '.txt' file recursively from current dir | |
#maybe ack do this like "cd to/the/dir ; ack --text test" | |
#example: grepall test txt | |
function grepall() { | |
echo "find text '$1'"; | |
echo "In files << $2 >>"; | |
grep -ni "$1" **/*.$2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment