I got some files, after an egrep command, like
egrep -l -r '(this|that|those)' *
This will list about 20 files. I don’t want to open each one manually, is there any way to redirect the result from grep, directly to an editor so the editor will open those files to me?
$EDITORshould be set to your editor of choice, obviously.OTOH said editor probably has a shorter, non-caps name, so you’d just type it directly.
Me, I’m all day doing this:
(Also take the tip that
ackis way cooler1 thanegrepand does recursive file matching by default, with filters per file type)1 Where by cooler I mean real
perlregular expressions.