Batch Editing Files with ed

Full Article : -

The other day at work I needed to edit 200 files at once. I wanted to do something pretty simple: basically, I had files that looked like this:

foo: – bar – baz – bananas

and I wanted to insert an extra line after the baz line that said elephant

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: