Algorithmic blackout:
- problem: find the files that match
- problem: stack/buffer the matches
- move the cursor to the next file of the stack and thereby to the location of the match
- repeat step 2
Things I have used earlier to tackle the issue.
Vi/m: (the below works in an ubuntu server, perhaps configured by sysadmin but cannot get it work locally)
:grep -r "[^|]*|[^|]*|[^|]*|.*" *
<edit something>
:cn
<edit something>
:cn
<damn forgot it>
:bn
<forward and so on>
emacs: M-x grep Enter
and then to have grep -r "[^|]*|[^|]*|[^|]*|.*" *
but now in mystery. How can you do the fast hierarchical edits?
shellesque: then I once created a wild one-liner with some grep-xargs-something-things-vi but I am starting to smell reinventing-the-wheel.
Sorry about the vim/emacs juxtaposition but I don't care which tool you use, use the most convenient (xargs/emacs/vi/m just examples).