ed.1 (131513) | ed.1 (140353) |
---|---|
1.\" $FreeBSD: head/bin/ed/ed.1 131513 2004-07-03 02:03:44Z tjr $ | 1.\" $FreeBSD: head/bin/ed/ed.1 140353 2005-01-16 16:41:59Z ru $ |
2.Dd July 3, 2004 3.Dt ED 1 4.Os 5.Sh NAME 6.Nm ed , 7.Nm red 8.Nd text editor 9.Sh SYNOPSIS --- 906 unchanged lines hidden (view full) --- 916.Bl -tag -width /tmp/ed.* -compact 917.It /tmp/ed.* 918buffer file 919.It ed.hup 920the file to which 921.Nm 922attempts to write the buffer if the terminal hangs up 923.El | 2.Dd July 3, 2004 3.Dt ED 1 4.Os 5.Sh NAME 6.Nm ed , 7.Nm red 8.Nd text editor 9.Sh SYNOPSIS --- 906 unchanged lines hidden (view full) --- 916.Bl -tag -width /tmp/ed.* -compact 917.It /tmp/ed.* 918buffer file 919.It ed.hup 920the file to which 921.Nm 922attempts to write the buffer if the terminal hangs up 923.El |
924.Sh SEE ALSO 925.Xr bdes 1 , 926.Xr sed 1 , 927.Xr sh 1 , 928.Xr vi 1 , 929.Xr regex 3 930.Pp 931USD:12-13 932.Rs 933.%A B. W. Kernighan 934.%A P. J. Plauger 935.%B Software Tools in Pascal 936.%O Addison-Wesley 937.%D 1981 938.Re 939.Sh LIMITATIONS 940The 941.Nm 942utility processes 943.Ar file 944arguments for backslash escapes, i.e., in a filename, 945any characters preceded by a backslash (\\) are 946interpreted literally. 947.Pp 948If a text (non-binary) file is not terminated by a newline character, 949then 950.Nm 951appends one on reading/writing it. 952In the case of a binary file, 953.Nm 954does not append a newline on reading/writing. 955.Pp 956per line overhead: 4 ints | |
957.Sh DIAGNOSTICS 958When an error occurs, 959.Nm 960prints a 961.Ql \&? 962and either returns to command mode 963or exits if its input is from a script. 964An explanation of the last error can be --- 24 unchanged lines hidden (view full) --- 989the command list is executed only once. 990.Pp 991If diagnostics are not disabled, attempting to quit 992.Nm 993or edit another file before writing a modified buffer 994results in an error. 995If the command is entered a second time, it succeeds, 996but any changes to the buffer are lost. | 924.Sh DIAGNOSTICS 925When an error occurs, 926.Nm 927prints a 928.Ql \&? 929and either returns to command mode 930or exits if its input is from a script. 931An explanation of the last error can be --- 24 unchanged lines hidden (view full) --- 956the command list is executed only once. 957.Pp 958If diagnostics are not disabled, attempting to quit 959.Nm 960or edit another file before writing a modified buffer 961results in an error. 962If the command is entered a second time, it succeeds, 963but any changes to the buffer are lost. |
964.Sh SEE ALSO 965.Xr bdes 1 , 966.Xr sed 1 , 967.Xr sh 1 , 968.Xr vi 1 , 969.Xr regex 3 970.Pp 971USD:12-13 972.Rs 973.%A B. W. Kernighan 974.%A P. J. Plauger 975.%B Software Tools in Pascal 976.%O Addison-Wesley 977.%D 1981 978.Re 979.Sh LIMITATIONS 980The 981.Nm 982utility processes 983.Ar file 984arguments for backslash escapes, i.e., in a filename, 985any characters preceded by a backslash (\\) are 986interpreted literally. 987.Pp 988If a text (non-binary) file is not terminated by a newline character, 989then 990.Nm 991appends one on reading/writing it. 992In the case of a binary file, 993.Nm 994does not append a newline on reading/writing. 995.Pp 996per line overhead: 4 ints |
|
997.Sh HISTORY 998An 999.Nm 1000command appeared in 1001Version 1 AT&T UNIX. 1002.Sh BUGS 1003The 1004.Nm 1005utility does not recognize multibyte characters. | 997.Sh HISTORY 998An 999.Nm 1000command appeared in 1001Version 1 AT&T UNIX. 1002.Sh BUGS 1003The 1004.Nm 1005utility does not recognize multibyte characters. |