This page printed from:
panoptic.com/rking/gr
For Our King, Only
Recent Changes
/
Heat
/
Syntax
/
History
gr
New name
! Usage This shell script is a handy way to spiff up "grep -r" a bit. It ignores the .svn/ and locale/ dirs, plus it will automatically append "." as the directory to search. Nothing much, but a handy one to put in ~/bin/gr ! Code {{#!/bin/sh NEEDLE="^$1" HAYSTACK="^$2" [ "$HAYSTACK" == "" ] && HAYSTACK=. grep --color --exclude-dir=locale --exclude-dir=.svn -r "^$NEEDLE" "^$HAYSTACK"}}
Password
Summary of changes
Erase cookies
/
Syntax
/
History
Last changed: 2012/01/22 14:09