[Eug-lug] Computer time

Allen Brown abrown at peak.org
Sat Jan 22 08:26:08 PST 2005


Vi and ex are the same bits.  But they act differently.  Vi is
a screen editor.  Ex is a line editor.

They are actually different modes for the same editor.  You can
drop to ex from within vi.
--
Allen Brown
  work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
        allen_brown at agilent.com             abrown at peak.org
  Anyone can make something work.  It takes an engineer to make it 
*barely* work.

On Fri, 21 Jan 2005, Jim K wrote:

>       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?
> 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.
>     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
> 


More information about the EUGLUG mailing list