Skip to content

Instantly share code, notes, and snippets.

@Hettomei
Created September 27, 2013 14:23
Show Gist options
  • Save Hettomei/6729371 to your computer and use it in GitHub Desktop.
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
##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