07/23/75 edm Function: creates or edits ASCII segments. Syntax: edm {path} Arguments: path is the pathname of the segment to be edited. Modes: edm has three modes-- input, edit, and comment. If path was specified and found, edm begins in edit mode; otherwise it begins in input mode. In edit mode, edm accepts and performs edit requests. In input mode, all lines typed are appended to the file until a line consisting of "." is typed, causing return to edit mode. In comment mode, one line at a time of the file is printed without carriage return, and the user may append to the end of the line by typing a continuation, or may type a "." to cause a return to edit mode. Requests: in edit mode the following are valid. . enter input mode; exit when a line with only "." is typed - N back up N lines , enter "comment" mode; exit when a line with only "." is typed = print current line number b go to bottom of file, enter input mode c N /s1/s2/ change all occurrences of string "s1" to "s2" for N lines d N delete N lines updelete delete all lines above current line E line execute "line" as a Multics command line f string find a line beginning with "string" i line insert "line" after current line merge path insert segment "path" after current line move M N beginning with line M, remove N lines and insert them after the current line. k enter brief mode (no response after f, n, l, c, s) l string locate a line containing "string" n N move down N lines p N print N lines q exit from edm (See Notes) qf exit directly from edm with no question r line replace current line with "line" s N /s1/s2/ same as "c" t go to top of file v enter verbose mode (opposite of "k") w path write edited copy of file into "path" (See Notes) upwrite path write and delete all lines above current line into "path" Notes: For the "s" and "c" requests, the delimiter may be any character not in the strings s1 and s2; c/a/b/ and cxaxbx work the same. If the first string is empty, characters go in at the front. For the "q" request, if a "w" has not been done since the last change to the text then edm warns the user that changes made may be lost and asks whether the user still wishes to exit. If no changes have been made since the last "w" then the user exits directly. The "qf" request bypasses this check. ----------------------------------------------------------- Historical Background This edition of the Multics software materials and documentation is provided and donated to Massachusetts Institute of Technology by Group BULL including BULL HN Information Systems Inc. as a contribution to computer science knowledge. This donation is made also to give evidence of the common contributions of Massachusetts Institute of Technology, Bell Laboratories, General Electric, Honeywell Information Systems Inc., Honeywell BULL Inc., Groupe BULL and BULL HN Information Systems Inc. to the development of this operating system. Multics development was initiated by Massachusetts Institute of Technology Project MAC (1963-1970), renamed the MIT Laboratory for Computer Science and Artificial Intelligence in the mid 1970s, under the leadership of Professor Fernando Jose Corbato. Users consider that Multics provided the best software architecture for managing computer hardware properly and for executing programs. Many subsequent operating systems incorporated Multics principles. Multics was distributed in 1975 to 2000 by Group Bull in Europe , and in the U.S. by Bull HN Information Systems Inc., as successor in interest by change in name only to Honeywell Bull Inc. and Honeywell Information Systems Inc. . ----------------------------------------------------------- Permission to use, copy, modify, and distribute these programs and their documentation for any purpose and without fee is hereby granted,provided that the below copyright notice and historical background appear in all copies and that both the copyright notice and historical background and this permission notice appear in supporting documentation, and that the names of MIT, HIS, BULL or BULL HN not be used in advertising or publicity pertaining to distribution of the programs without specific prior written permission. Copyright 1972 by Massachusetts Institute of Technology and Honeywell Information Systems Inc. Copyright 2006 by BULL HN Information Systems Inc. Copyright 2006 by Bull SAS All Rights Reserved