No subject
Thu Dec 20 21:04:13 MST 2007
for i in `grep -l 'bob' *`; do vim $i; done
-Hani
--- Keith Hellman <khellman at mcprogramming.com> wrote:
> On Tue, Dec 23, 2003 at 11:12:40PM -0700, Jeff Cann wrote:
> > $grep -l 'bob' *
> > empty-navbar.jsp
> > footer.jsp
> > header.jsp
> > nohome-header.jsp
>
> $vim $(grep -l 'bob' *|cut -d : -f 1 |sort |uniq)
>
> From the console.
>
> Within vim, you can also do:
>
> :grep 'bob' *
>
> and vim will treat the output much like compiler error output,
> providing
> each instance of 'bob' found in the files with a separate 'error'
> entry.
> Navigate through this list the same as you would compiler errors.
>
> :help grep
>
> and
>
> :help cnext
>
> Within vim for more details.
>
> HTH
> --
> Keith Hellman #include <disclaimer.h>
> khellman at mcprogramming.com from disclaimer import
> standard
>
> "We are born wet, naked, and hungry. Then things get worse."
>
> --Unknown
> _______________________________________________
> CLUE-Tech mailing list
> Post messages to: CLUE-Tech at clue.denver.co.us
> Unsubscribe or manage your options:
http://clue.denver.co.us/mailman/listinfo/clue-tech
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
More information about the clue-tech
mailing list