3 ms·
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 -
by jbnicolai 12y 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 -
- icebraining 12y agoYour version searches for blooey in the filenames, not in the files themselves.
- reitanqild 12y agoAnd, to try to be helpful, - seems it lacks an xargs (or similar construct)
- a3n 12y agoI 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.