News for hackers. Stuff that matters.
Re:Version 1.8 of GNU ed released by zurn on Thursday April 25, 2013 @02:26AM (#5605962)
ed is actually really handy in shell scripts when you want change something in a text file, and want to navigate in the text by following landmarks. Eg. if you are editing an .ini file the sed or awk methods are much more cumbersome, with ed it's just a couple of navigation commands and a in-place replace and save.

Plus you get to try things out interactively and then paste the working set of commands in your script. it's like sed with a repl, only better!

Example: https://groups.google.com/group/comp.unix.shell/msg/e823e275...

Re:Version 1.8 of GNU ed released by philh on Thursday April 25, 2013 @03:38AM (#5606108)
That breaks if the file to include contains a line with just a ., unfortunately. But it's still ridiculously simple, and that's likely not to be a problem in a lot of cases.
Re:Version 1.8 of GNU ed released by ultimoo on Thursday April 25, 2013 @02:57AM (#5606026)
This is really cool, thanks!