grep -l foo ./* | xargs vim -p
Alternatively, to get a single-line list that can be edited and then copy-pasted to a command-line:
grep -l foo ./* | xargs echo
There are more heavy-duty ways of removing lines in output listed here, but I see little reason for using them.t
No comments:
Post a Comment