Welcome, Guest. Please login or register.

Author Topic: Has anybody used the "Edit" shell command in recent years, and/or knows what it does?  (Read 4870 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline pyrre

Quote from: olsen;635040
The "Edit" shell command is one of the odder of the odd AmigaDOS shell commands. It's supposed to be a line editor which reads a file and then modifies it according to control commands which one can either enter manually, or have them read from a file. It's basically the AmigaDOS version of the Unix "sed" (stream editor) command.

As a matter of fact, the "Edit" command introduced with Workbench 2.0 never actually worked correctly. It either corrupted the files it read or crashed. Also, the documented features (e.g. in the AmigaDOS manual, 3rd edition) were not all implemented either. Which means that the command was basically useless, and has been for the past 20 or so years.

I'm curious if anybody here has ever used the "Edit" command, or even knows about its existance.
I always used CED for such work....
Amiga 1200 Tower Os 3.9
BPPC 603e+ 040-25/200, 256MBram, BVIsionPPC, Indivision AGA MK2.
Amiga 2000 (rev 4.0) Os 1.2/1.3
2088 bridgeboard, 2MB ram card, 2091 SCSI.
Amiga 500+ Os 2.1
Derringer 030, 32MBram, Buddha in sidecar, Indivision ECS.
Amiga CD32
Video decoder
 

Offline pyrre

Quote from: Thomas Richter;806590
Well, the purpose of EDIT is rather to automate edits for scripting, and for that CED is not well suited. EDIT could, in principle, do this. However, it's arcane syntax is not really helpful.  I personally use my edition of SED for this purpose - the syntax is probably not less arcane, though based on the AmigaDos wildcards, but at least the beast works.
i am not in any way a programmer. i never use scripts, and automating scripts.. way over my head.
i preferd CED for editing startup-sequence or user startup, or anything related.
Amiga 1200 Tower Os 3.9
BPPC 603e+ 040-25/200, 256MBram, BVIsionPPC, Indivision AGA MK2.
Amiga 2000 (rev 4.0) Os 1.2/1.3
2088 bridgeboard, 2MB ram card, 2091 SCSI.
Amiga 500+ Os 2.1
Derringer 030, 32MBram, Buddha in sidecar, Indivision ECS.
Amiga CD32
Video decoder