/[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 963 by dpavlin, Tue Jan 6 12:59:33 2009 UTC revision 964 by dpavlin, Wed Jan 7 22:59:02 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 $@ lib t/"  grep="grep -rni $@ lib static/Frey t/"
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.963  
changed lines
  Added in v.964

  ViewVC Help
Powered by ViewVC 1.1.26