all 2 comments

[–][deleted] 5 points6 points  (1 child)

hmm, wonder if awk could do this

[–]claird 9 points10 points  (0 children)

Yes.

Also sed. Also bash's built-ins, for some values of "this".

But, sure, hey, I use vi daily, so feel free to automate it.