|
|
1.1 ! root 1: .\" Copyright (c) 1980 Regents of the University of California. ! 2: .\" All rights reserved. The Berkeley software License Agreement ! 3: .\" specifies the terms and conditions for redistribution. ! 4: .\" ! 5: .\" @(#)ex.1 6.4 (Berkeley) 6/5/86 ! 6: .\" ! 7: .TH EX 1 "June 5, 1986" ! 8: .UC 4 ! 9: .SH NAME ! 10: ex, edit \- text editor ! 11: .SH SYNOPSIS ! 12: .B ex ! 13: [ ! 14: .B \- ! 15: ] [ ! 16: .B \-v ! 17: ] [ ! 18: .B \-t ! 19: tag ! 20: ] [ ! 21: .B \-r ! 22: ] [ ! 23: \fB+\fIcommand\fR ! 24: ] [ ! 25: .B \-l ! 26: ] ! 27: name ... ! 28: .br ! 29: .B edit ! 30: [ ! 31: ex options ! 32: ] ! 33: .SH DESCRIPTION ! 34: .I Ex ! 35: is the root of a family of editors: ! 36: .I edit, ! 37: .I ex ! 38: and ! 39: .I vi. ! 40: .I Ex ! 41: is a superset of ! 42: .I ed, ! 43: with the most notable extension being a display editing facility. ! 44: Display based editing is the focus of ! 45: .I vi. ! 46: .PP ! 47: If you have not used ! 48: .I ed, ! 49: or are a casual user, you will find that the editor ! 50: .I edit ! 51: is convenient for you. ! 52: It avoids some of the complexities of ! 53: .I ex ! 54: used mostly by systems programmers and persons very familiar with ! 55: .I ed. ! 56: .PP ! 57: If you have a \s-2CRT\s0 terminal, you may wish to use a display ! 58: based editor; in this case ! 59: see ! 60: .IR vi (1), ! 61: which is a command which focuses on the display editing portion of ! 62: .I ex. ! 63: .SH DOCUMENTATION ! 64: The document ! 65: .I "Edit: A tutorial" ! 66: (USD:14) provides a comprehensive introduction to ! 67: .I edit ! 68: assuming no previous knowledge of computers or the \s-2UNIX\s0 system. ! 69: .PP ! 70: The ! 71: .I "Ex Reference Manual \- Version 3.7" ! 72: (USD:16) ! 73: is a comprehensive and complete manual for the command mode features ! 74: of ! 75: .I ex, ! 76: but you cannot learn to use the editor by reading it. ! 77: For an introduction to ! 78: more advanced forms of editing using the command mode of ! 79: .I ex ! 80: see the editing documents written by Brian Kernighan for the editor ! 81: .I ed; ! 82: the material in the introductory and advanced documents works also with ! 83: .I ex. ! 84: .PP ! 85: .I "An Introduction to Display Editing with Vi" ! 86: (USD:15) ! 87: introduces the display editor ! 88: .I vi ! 89: and provides reference material on ! 90: .I vi. ! 91: In addition, the ! 92: .I "Vi Quick Reference" ! 93: card summarizes the commands ! 94: of ! 95: .I vi ! 96: in a useful, functional way, and is useful with the ! 97: .I Introduction. ! 98: .SH FILES ! 99: .DT ! 100: /usr/lib/ex?.?strings error messages ! 101: .br ! 102: /usr/lib/ex?.?recover recover command ! 103: .br ! 104: /usr/lib/ex?.?preserve preserve command ! 105: .br ! 106: /etc/termcap describes capabilities of terminals ! 107: .br ! 108: ~/.exrc editor startup file ! 109: .br ! 110: /tmp/Ex\fInnnnn\fR editor temporary ! 111: .br ! 112: /tmp/Rx\fInnnnn\fR named buffer temporary ! 113: .br ! 114: /usr/preserve preservation directory ! 115: .SH SEE ALSO ! 116: awk(1), ed(1), grep(1), sed(1), grep(1), vi(1), termcap(5), environ(7) ! 117: .SH AUTHOR ! 118: Originally written by William Joy ! 119: .br ! 120: Mark Horton has maintained the editor since version 2.7, adding macros, ! 121: support for many unusual terminals, ! 122: and other features such as word abbreviation mode. ! 123: .SH BUGS ! 124: The ! 125: .I undo ! 126: command causes all marks to be lost on lines changed and then restored ! 127: if the marked lines were changed. ! 128: .PP ! 129: .I Undo ! 130: never clears the buffer modified condition. ! 131: .PP ! 132: The ! 133: .I z ! 134: command prints a number of logical rather than physical lines. ! 135: More than a screen full of output may result if long lines are present. ! 136: .PP ! 137: File input/output errors don't print a name if the command line \fB`\-'\fR ! 138: option is used. ! 139: .PP ! 140: There is no easy way to do a single scan ignoring case. ! 141: .PP ! 142: The editor does not warn if text is placed in named buffers and not used ! 143: before exiting the editor. ! 144: .PP ! 145: Null characters are discarded in input files, and cannot appear in resultant ! 146: files.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.