[CLUE-Tech] pipe list of file names to vim

David Anselmi anselmi at americanisp.net
Wed Dec 24 08:34:07 MST 2003


Keith Hellman wrote:
[...]
>  
> $vim $(grep -l 'bob' *|cut -d : -f 1 |sort |uniq)

For grep -l it would seem that:

$vim $(grep -l 'bob' *)

should be the same thing.  And of course there's always:

grep -l 'bob' * | xargs vim

if you have a lot of files (in which case maybe vim can't open them all, 
or you want sed instead of vim, or ...)

Dave




More information about the clue-tech mailing list