LWN.net Logo

21 of the Best Free Linux Text Editors (LinuxLinks)

21 of the Best Free Linux Text Editors (LinuxLinks)

Posted Aug 27, 2008 17:07 UTC (Wed) by AJWM (guest, #15888)
In reply to: 21 of the Best Free Linux Text Editors (LinuxLinks) by flewellyn
Parent article: 21 of the Best Free Linux Text Editors (LinuxLinks)

'ed' is perfect for scripting a series of edits on a bunch of files where sed or awk or perl would be too arcane or bloated (or you've forgotten the exact sed or awk or perl syntax). Quick'n'dirty but it gets the job done, emphasis on quick.


(Log in to post comments)

21 of the Best Free Linux Text Editors (LinuxLinks)

Posted Aug 28, 2008 0:37 UTC (Thu) by flewellyn (subscriber, #5047) [Link]

I'm more proficient with sed than ed, myself. I find it very useful, though.

21 of the Best Free Linux Text Editors (LinuxLinks)

Posted Aug 29, 2008 9:17 UTC (Fri) by branden (guest, #7029) [Link]

ed is a more appropriate tool than sed for noninteractive editing when the file to be manipulated is free-form and/or you need to go backwards.

I wouldn't rule anything as beyond sed's capabilities, since thanks to its hold buffer, label and branching features, it's probably Turing-complete. But I think ed is a better (and more idiomatic) fit for the scenarios I mentioned.

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds