[comp.sys.amiga] AmigaDOS manual/"edit" command

BCSCHONE@pucc.Princeton.EDU (Brian Charles Schoner) (05/29/88)

Hi there.  I've never been a big user of the
CLI, mostly because it hasn't been necessary.
However, I recently got a copy of DBW_Render, a
really snazzy raytracing shareware program
(donation en route), and it involves creating a
.data file to create a picture.  What I'd like to
eventually find is a copy of the AmigaDOS User's
Manual, or a similar reference publication of
Stuff I Should Know.  Any suggestions?
 
 
At the moment,
however, I would really appreciate someone taking
the time to send me a brief summary of subcommands
of the CLI "edit" command, i.e. how to add lines,
delete them, edit them, renumber tham, save
changes, etc.  Anyone providing this will recieve
my heartfelt gratitude and public acknowledgement
as a Really Swell Person.
 
 
Thanks in retreat.
************************************************************
  "In Korea, door handles do not come off." -Chiun, Master Of Sinanju
SPONSORED BY:
Brian "The Bass Guy" Schoner
433 Joline Hall                    BCSCHONE@PUCC.PRINCETON.EDU

SLMYQ@USU.BITNET (06/01/88)

>At the moment,
>however, I would really appreciate someone taking
>the time to send me a brief summary of subcommands
>of the CLI "edit" command, i.e. how to add lines,
>delete them, edit them, renumber tham, save
>changes, etc.  Anyone providing this will recieve
>my heartfelt gratitude and public acknowledgement
>as a Really Swell Person.

You might just want to get DME from Matt Dillon or from some archive
somewhere.  Really a wonderful editor.  If you insist on using the
AmigaDOS editor, however, you should use the Ed editor rather than
Edit.  It's a simple screen editor (as opposed to Edit, which is a
line editor - yuck).

You should be able to get the AmigaDOS manual at Waldenbooks or
B Dalton.


                                Bryan Ford (SLMYQ@USU.BITNET)

andy@cbmvax.UUCP (Andy Finkel) (06/02/88)

In article <8806010028.AA22336@jade.berkeley.edu> SLMYQ@USU.BITNET writes:
>AmigaDOS editor, however, you should use the Ed editor rather than
>Edit.  It's a simple screen editor (as opposed to Edit, which is a
>line editor - yuck).

I use EDIT as a quick and dirty stream editor.

(for real editing, I use MicroEmacs, of course :-)  )
-- 
andy finkel		{ihnp4|seismo|allegra}!cbmvax!andy 
Commodore-Amiga, Inc.

"C combines the power of assembly language with the flexibility of
 assembly language."
		
Any expressed opinions are mine; but feel free to share.
I disclaim all responsibilities, all shapes, all sizes, all colors.

carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) (06/09/88)

In article <8806010028.AA22336@jade.berkeley.edu> SLMYQ@USU.BITNET writes:
>>At the moment,
>>however, I would really appreciate someone taking
>>the time to send me a brief summary of subcommands
>>of the CLI "edit" command...

Not sure if you REALLY mean "edit" which is a line editor and is used
by nobody except Andy Finkel in some of his very bizarre scripts,
or if you mean "ed" the full-screen editor which can is generally
used for editing scripts, program source code, etc. - even BASIC
programs (if you save them out in ASCII format with save "filename",a).


Anyway - in case you mean "ed", here's something very old that I
still keep a copy of under my monitor...


Amiga Reference Card    Thanks to Bruce Barrett / Dale Luck   AMIGA

**********************************Start of card*********************
======= Amiga Reference Card =====1=
----------- ED Commands ------------

Movement:
esc    key   what happens  (type esc first to use the commands on left)
----------------------------
CL	    Cursor left (left arrow key) 
CR	    Cursor right (right arrow key)
	^I  Tab to next
	^R  Cursor left one word
	^T  Cursor right one word
CS	^]  Cursor to start of line
CE	^]  Cursor to end of line
	    Cursor Up (up arrow key)
	    Cursor down (down arrow key)
N	    Next line (start of)
P	    Previous line (start of)
	^E  Top or Bottom of screen
	^D  Scroll text Down
	^U  Scroll test Up  x
B	    Bottom of file
T	    Top of file
Mn          Move to line# n

Changes (insert, exchange, delete):
-----------------------------------
S	^M  Insert <cr>
A/s/	    Insert line before
I/s/	^A  Insert line after
IB	    Insert block
IF!f!	    Insert file

DC	del Delete character
	BS  Delete previous char.
	^O  Delete next word
J	    Delete next <cr>
	^Y  Delete to end of line
D	^B  Delete line
DB	    Delete Block

EQ/s/t/	    Exchange w/Query
E/s/t/	    Exchange
BE	    Block End
BS	    Block Start
SB	    Show block
F	    Find
BF	    Find, backwards
LC	    Check case in searches
UC	    Don't check case




======= Amiga Reference Card =====2=
----------- ED Commands ------------

Misc:

U	    Undo changes
RP	    Repeat til error
SL	    Set Left margin
SR	    Set Right margin
ST	    Set Tab distance
EX	    Extend right margin
SH	    Show information
Q	    Quit (no save)
SA	    Save file
WB!f!	    Write block to file
X	    Exit (and save)
	^G  Repeat last extended

======= Amiga Reference Card =======
---------- DOS Error Codes ---------

103  Out of memory
120  Command line invalid
121  Not an Object Module
202  Object in use
203  Object exists
205  Objet not found
209  Action not known
210  Invalid stream name
211  Object lock invalid
212  Object wrong type
213  Disk not validated
214  Disk Read only
215  Rename across devices
216  Directory not empty
218  Device not mounted
219  Seek error
220  Comment too big
221  Disk full
222  File delete protected
223  File write protected
224  File read protected
225  Not a DOS disk
226  No disk in drive
232  No more DIR entries



======= Amiga Reference Card =====3=
==--==--  Dead End Alerts   --==--==

-------- 68000/68010 errors  -------

0	Call to Debug();
1	--?--
2	Bus error
3	Address error
4	Illegal instruction
5	Division by Zero
6	CHK inst. (shouldn't happen)
7	TRAPV inst. (shouldn't happen)
8	Privileged instruction
9	trace (single step)
A	Line 1010 emulator
B	Line 1111 emulator
2x	Trap instructions 0-E
2F	Normal break point




======= Amiga Reference Card =====1=
----------- The Assembler ----------

Assem	prog [-o outfile] [-c options]
	  [-i include/group/]
	  [-l listfile]

options:
	S  Place symbols in -o file
	D  No local symbols in -o file
	C  Ignore label case
	X  Add xref info to -l file
	Wn Set workspace value {8000}





















======= Amiga Reference Card =====5=
------------ The Linker ------------

Alink	file[+file...] [WITH file]
	  [LIB file[+file...]] 
	  [XREF file] [WIDTH n]
	  [MAP file] [TO file]

ALink startup.o+foo.o lib lib 
	  lc.lib+amiga.lib to foo.ld

Alink with foo.wth
foo.with:    FROM startup.obj*
	       myfile.o*
	     TO myfile.ld
	     LIBRARY lc.lib*
	       amiga.lib
	     OVERLAY 
	     a,b
	     b
	     *aa,bb
	     **ccc,ddd

======= Amiga Reference Card =======
------- DOS Execute Commands -------

Execute	file [arguments]
FailAt	return_code (from 1 to 2000meg)

IF	condition
    :	  :
ENDIF
Conditions:
	[NOT] WARN|ERROR|FAIL
	[NOT] srring1 EQ string2
	[NOT] EXISTS file

Skip	[label]
LAB	[label]
Quit	[return_code]		{0}








======= Amiga Reference Card =====6=
----------- DOS Commands -----------

;	comment
>	redirect stdout
<	redirect stdin
Assign	log_dev: dir
Break	task# [All][C][D][E][F]
CD	dir
Copy	[dir|file] [TO] dir|file 
	  [ALL][QUIET]
Date	[dd-mmm-yy] [[h]h:mm[:ss]]
Delete	name[ name...]
Dir	[dir] [OPT A|D|I]
	  A=all, D=Dir names only, 
	  I=interactive
Diskcopy DFn: to DFm: [new_name]
Echo	"string"
EndCLI
Fault	n [n...]
FileNote file "string"
Format	DRIVE DFn: NAME "string"
Info
Install	DFn:
Join	file [file...] AS new_file
List	[dir] [P patern] [S pattern]
	  [KEYS] [[NO]DATES] [QUICK]
	  [SINCE date] [UPTO date]
MakeDir	dir
NewCLI	["x/y/width/heigth/[name]"]
Prompt	"string"  (May use %n for 
	  tack number)
Protect	file|dir [R][W][D][E]
Raname	file|dir file|dir
Run	program [arguments] [+
	  program [arguments] [+...
Search	dir|pattern [SEARCH] "string"
	  [ALL]
Sort	file file [COLSTART n]
Stack	n
Status	[process#] [FULL] [TCB] 
	  [SEGS] [ALL]
Type	file [OPT N|H]
Wait	n SEC|MIN
Wait	UNTIL hh:mm
Why	
^^^^^^^^^^^^^^^^^^^^^^^^^ that's all, folks ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Carolyn Scheppner -- CATS   >>Commodore Amiga Technical Support<<
                     UUCP  ...{allegra,ihnp4,rutgers}!cbmvax!carolyn 
                     PHONE 215-431-9180
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) (06/10/88)

In article <3976@cbmvax.UUCP> carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) writes:
>Anyway - in case you mean "ed", here's something very old that I
>still keep a copy of under my monitor...
>
>
>Amiga Reference Card    Thanks to Bruce Barrett / Dale Luck   AMIGA
>
> [ incredibly useful reference card deleted to save space ]

	Uh, guys?.....

	>>** PRINT THAT THING UP IN MASS QUANTITIES AND SELL IT!!! **<<

	Either that or enclose it with the 1.[34] enhancer.

	It would cost Commodore virtually NOTHING to set up and print such a
thing.  'Round here at Computer Literacy bookstores, they *sell* such quick
reference cards for one or two bucks a pop.

	Go for it; you can't lose with this one.

_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Leo L. Schwab -- The Guy in The Cape  ihnp4!pacbell -\
 \_ -_		Recumbent Bikes:	      dual ---> !{well,unicom}!ewhac
O----^o	      The Only Way To Fly.	      hplabs / (pronounced "AE-wack")
"Hmm, you're right.  Air is made up of suspended meat loaf."  -- Josh Siegel