LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


View Poll Results: Do you use ed?
What the heck is ed? 7 21.21%
Anyone who is still using ed is a freakin' weirdo. 11 33.33%
I've used it in the past but not anymore. 8 24.24%
Occasionally. 5 15.15%
Always. I LOVE ED! 2 6.06%
Voters: 33. You may not vote on this poll

Reply
  Search this Thread
Old 06-03-2010, 01:46 PM   #16
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Xubuntu
Posts: 5,359

Rep: Reputation: 1863Reputation: 1863Reputation: 1863Reputation: 1863Reputation: 1863Reputation: 1863Reputation: 1863Reputation: 1863Reputation: 1863Reputation: 1863Reputation: 1863

I'd never heard of ed until I read this post. It takes me back nearly 30 years to editing batch files with edlin, and I really don't want to go there.

I can beat 44K: 33K for Spy, an old QL editor that I still use occasionally. Its strip option is great for removing CRs for Microsoft files, though I dare say there's a command-line tool for that that I don't know.
 
Old 06-04-2010, 02:42 AM   #17
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: OpenBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
Small?

Quote:
Originally Posted by CoderMan View Post
One nice thing about it is that it is small, but still workable. On my system, the binary is 44K, and that is with -O2 optimization. Dependencies are pretty light also:

Code:
$ ldd /bin/ed
	linux-vdso.so.1 =>  (0x00007fff24722000)
	libc.so.6 => /lib/libc.so.6 (0x00007f2869326000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f286967f000)
Sure, but e3 is smaller, very easy to use, and is done in assembler IIRC.
Code:
$ ls -lh /usr/bin/e3
-rwxr-xr-x 1 root root 13K 2008-05-04 23:39 /usr/bin/e3
I finally found a Linux implementation of edt(VMS edit/tpu) so I'm checking that out - but it's still larger than this.
 
Old 06-04-2010, 05:05 AM   #18
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 7
Posts: 377
Blog Entries: 4

Rep: Reputation: 78
They even had it on DEC. not sure what they called it.
 
Old 06-04-2010, 05:42 AM   #19
sica07
Member
 
Registered: May 2008
Distribution: Arch
Posts: 47
Blog Entries: 3

Rep: Reputation: 16
Vim and mc's editor.
 
Old 06-04-2010, 03:42 PM   #20
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375

Original Poster
Blog Entries: 24

Rep: Reputation: 43
Quote:
Originally Posted by MBybee View Post
Sure, but e3 is smaller, very easy to use, and is done in assembler IIRC.
Code:
$ ls -lh /usr/bin/e3
-rwxr-xr-x 1 root root 13K 2008-05-04 23:39 /usr/bin/e3
I finally found a Linux implementation of edt(VMS edit/tpu) so I'm checking that out - but it's still larger than this.
Hey, that is pretty cool. I installed e3 with Gentoo's Portage and it used the YASM assembler. Came out to about 17K on my system.

As I mentioned before, I compiled ed with -O2, so it would probably be smaller if I compiled for size instead of performance. But e3 would still be smaller, no doubt.

Of course, the downside of an editor coded in assembly is the lack of portability, which is certain to be an issue on the systems where you really need a small editor -- embedded systems.
 
Old 06-05-2010, 12:48 AM   #21
MBybee
Member
 
Registered: Jan 2009
Location: wherever I can make a living
Distribution: OpenBSD / Debian / Ubuntu / Win7 / OpenVMS
Posts: 440

Rep: Reputation: 57
Quote:
Originally Posted by CoderMan View Post
Of course, the downside of an editor coded in assembly is the lack of portability, which is certain to be an issue on the systems where you really need a small editor -- embedded systems.
True enough, though you changed criteria
Portability is actually why I ended up switching from edt/edit/tpu to vi and Vim. I found that once I got out of the VMS world nothing else used that editor, but vi was on nearly everything (except DOS - and edit on DOS was *awful*)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration