John SechrestFri Jan 21 19:30:25 PST 2005
Jim K <kjim9 at earthlink.net> writes: % I just did a man ex on a mandrake 10 community system and it % displayed the vim man page. Is ex just an alias for vim? VIM (VI) and EX are the same editor. VI is the visual mode, EX is the line mode. % I have had at least one linux system that didn't have ex, but they all % had ed. You can create a program or script that creates a % script that executes ed and operate on another file. ed is small and % could be loaded on thing like linux ipods the Zuarus series of machines % etc, without using up memory. ed is the original editor. The key nice thing about it is that it is always available. % Also if you have used a line editor in the past ed is easy to pick % up and run with. % Jim K % Allen Brown wrote: % % >On Fri, 21 Jan 2005, Max Lemieux wrote: % > % > % > % >>Ok, this works. Enter gives me a ? but line number + enter displays a line. % >> % >>What practical uses do you find for ed? seems specialized enough that it % >>could be very handy. % >> % >>-Max % >> % >> % > % >Criminey! ed is just an historical relic. If you want something % >that is line oriented rather than a screen editor, use ex. % >-- % >Allen Brown % > work: Agilent Technologies non-work: http://www.peak.org/~abrown/ % > allen_brown at agilent.com abrown at peak.org % > The dinosaurs became extinct because they didn't have a space program. % > --- Larry Niven % > % > % > % > % >>Jacob Meuser wrote: % >> % >> % >> % >>>On Fri, Jan 21, 2005 at 02:52:39PM -0800, Max Lemieux wrote: % >>> % >>> % >>> % >>> % >>>>max at 4[~]$ ed Robert.txt % >>>>261 % >>>> % >>>>Yikes! I even RTFM ed, and no mention of a display mode (what am I % >>>>missing?). The substitution looked handy, though... % >>>> % >>>> % >>>> % >>>> % >>>ed works line-at-a-time. % >>> % >>>just start hitting enter, or some number less than 261 and then enter. % >>> % >>>now if you want to delete a line type 'd <line#>'. % >>> % >>>use 'a <line#>' to add a line. % >>> % >>> % >>> % >>> % >>> % >>_______________________________________________ % >>EUGLUG mailing list % >>euglug at euglug.org % >>http://www.euglug.org/mailman/listinfo/euglug % >> % >> % >> % >_______________________________________________ % >EUGLUG mailing list % >euglug at euglug.org % >http://www.euglug.org/mailman/listinfo/euglug % > % > % > % % _______________________________________________ % EUGLUG mailing list % euglug at euglug.org % http://www.euglug.org/mailman/listinfo/euglug ----- John Sechrest . Helping people use . computers and the Internet . more effectively . . Internet: sechrest at peak.org . . http://www.peak.org/~sechrest