Hacker News new | ask | show | jobs
by jbnicolai 4112 days ago
You could just use a pipe here though, which would also make it more easy to read. e.g.:

    $ find . -name '*blarg*.cpp' | grep -li blooey | vi -
2 comments

Your version searches for blooey in the filenames, not in the files themselves.
And, to try to be helpful, - seems it lacks an xargs (or similar construct)
I used to do it something like that, but I find it personally easier to understand the way I described it and evolved into that. I also like what I'm ultimately doing (vim/vi in this case) to be over on the left: edit whatever this mess on the right produces.