/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 663 - (hide annotations)
Mon Dec 1 23:34:16 2008 UTC (15 years, 4 months ago) by dpavlin
File MIME type: application/x-sh
File size: 156 byte(s)
grep iselect helper to jump directly into vi
1 dpavlin 663 #!/bin/sh
2    
3     test -z "$1" && exit
4    
5     line=`grep -rn $1 lib t/ | sed 's/^/<s>/' | iselect`
6     test ! -z "$line" && vi `echo $line | sed -e 's/:/ +/' -e 's/:.*$//'`

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26