/[Frey]/trunk/bin/grep-iselect.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/bin/grep-iselect.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1036 by dpavlin, Fri Jan 9 14:52:13 2009 UTC revision 1037 by dpavlin, Sun Feb 8 12:24:46 2009 UTC
# Line 5  Line 5 
5  test -z "$1" && exit  test -z "$1" && exit
6    
7  select=tmp/grep  select=tmp/grep
8  grep="grep -rni $@ '*.[Pp][MmLl] bin/ lib/ static/Frey/ t/ etc/"  grep="grep -rni $@ '*.[Pp][MmLl] bin/ lib/ static/Frey/ static/*.* t/ etc/"
9  $grep | sed 's/^\([^ ]*:[0-9][0-9]*:[ ^]*\)/{s}\1/' > $select  $grep | sed 's/^\([^ ]*:[0-9][0-9]*:[ ^]*\)/{s}\1/' > $select
10  if [ ! -s $silect ] ; then  if [ ! -s $silect ] ; then
11          echo "no results for $grep"          echo "no results for $grep"

Legend:
Removed from v.1036  
changed lines
  Added in v.1037

  ViewVC Help
Powered by ViewVC 1.1.26