Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ED.1
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 2k
Category:
OS Develop
Development Platform:
WINDOWS
- ED(1) Minix Programmer's Manual ED(1)
- NAME
- ed - editor
- SYNOPSIS
- ed file
- OPTIONS
- - Suppress line/byte count messages (for in scripts)
- EXAMPLES
- ed prog.c # Edit prog.c
- echo '1,$p' | ed - file
- # Odd way to write 'cat file'
- DESCRIPTION
- Ed is functionally equivalent to the standard V7 editor, ed. It supports
- the following commands:
- (.) a: append
- (.,.) c: change
- (.,.) d: delete
- e: edit new file"
- f: print name of edited file"
- (1,$) g: global command
- (.) i: insert
- (.,.+1) j: join lines together
- (.) k: mark
- (.) l: print with special characters in octal
- (.,.) m: move
- (.,.) p: print
- q: quit editor"
- (.) r: read in new file
- (.,.) s: substitute
- (1,$) v: like g, except select lines that do not match
- (1,$) w: write out edited file
- Many of the commands can take one or two addresses, as indicated above.
- The defaults are shown in parentheses. Thus a appends to the current
- line, and g works on the whole file as default. The dot refers to the
- current line. Below is a sample editing session with comments given
- following the # symbol.
- ed prog.c # Edit prog.c
- 3,20p # Print lines 3 through 20
- /whole/ # Find next occurence of whole
- s/whole/while/ # Replace whole by while
- g/Buf/s//BUF/g # Replace Buf by BUF everywhere
- 1
- ED(1) Minix Programmer's Manual ED(1)
- w # Write the file back
- q # Exit the editor
- Ed is provided for its sentimental value. If you want a line-oriented
- editor, try ex. If you want a good editor, use elle, elvis, or mined.
- SEE ALSO
- elvis(1), elle(9), mined(9).
- 2