|
|
Subscribe / Log in / New account

GNU ed 1.6 released

GNU ed 1.6 released

Posted Jan 5, 2012 17:18 UTC (Thu) by jhhaller (guest, #56103)
Parent article: GNU ed 1.6 released

My first editor on Unix was ed, vi and emacs hadn't been written yet. em (ed for mortals) was next. But, then moving to emacs instead of vi, I never really learned much of vi other than a, i, d, r, and x; most of my use of vi consists of colon followed by a ed command. Go to the end of the file,

:$
make a copy of a line,
:.t.
move 3 lines
:.,.+2t52 :.,.+2d
(assuming moving lines forward), and substitute apple for banana
:g/apple/s//banana/g


to post comments


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