How to direct filename results of grep -l to vim editor

Viewed 211

I would like to direct the results of a grep -l command to the vim editor.

E.g.

$ grep -l urls *.txt

foo1.txt
foo2.txt
foo3.txt

How to issue this command, and have the foo files open in vim?

5 Answers
Related