Please contact or Mt Xia for assistance with all your shell programming needs.
6.5 sed: Edit a File to Standard Output
UNIX provides a method of editing streams of data. It is the sed utility. The name of this utility is derived from Stream EDitor. This is not the same as the vi editor. The vi editor edits text in a file. The sed utility edits text in a stream. In order to edit a character stream two things are required. First, the line to edit must be identified (regular expressions) and second, how to edit the line. The formal form for the sed utility is as follows:
Command Format: sed [-n] [-e script] [-f sfile] [files] Details in on-line man pages |
Command format: awk [-Fc] [prog] [files] |