Path: utzoo!utgpu!water!watmath!clyde!att!mtunx!att!ihnp4!cbmvax!carolyn From: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Newsgroups: comp.sys.amiga Subject: Re: AmigaDOS manual/"edit" command Message-ID: <3976@cbmvax.UUCP> Date: 9 Jun 88 01:36:19 GMT References: <8806010028.AA22336@jade.berkeley.edu> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) Organization: Commodore Technology, West Chester, PA Lines: 280 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 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 ^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 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=