I previously wrote about command line scripting with ed and ex. I just had an opportunity to put ex into use in practice.
I needed to edit hundreds of files, searching for a line of text and then deleting it along with the next 22 lines.
I created an
exscript file containing this code: