On Tuesday, February 03, 2015 3:58 AM, Jim Nasby wrote:
> Note that the recursive grep starts at the current directory, so make sure you're actually in the pgsql source code when you use it.
> cat ~/bin/pg_grep
> #!/bin/sh
>
> grep -r "$*" * | grep -iv TAGS: | grep -v 'Binary file' | grep -v '.deps/'
By the way, why not add a "cd" into the pgsql source tree to the script? That way you can't forget it when using the script...