AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
SDIFF ( 1) SDIFF(l) On exit from the editor, the resulting file is concatenated on the end of the output file. SEE ALSO diff( l), ed(l). - 2 - � . J
SED ( 1 ) SED ( 1) NAME sed - stream editor SYNOPSIS sed [ -n ] [ -e script ] [ -f stile ] [ files ] DESCRIPTION Sed copies the named files (standard input default) to the standard output, edited according to a script of commands. The -f option causes the script to be taken from file sfile ; these options accumulate. If there is just one -e option and no -f options, the flag -e may be omitted. The -n option suppresses the default output. A script consists of editing commands, one per line, of the following form: [ address [ , address ] ] function [ arguments ] In normal operation, sed cyclically copies a line of input into a pattern space (unless there is something left after aD command), applies in sequence all commands whose addresses select that pattern space, and at the end of the script copies the pattern space to the standard output (except under -n) and deletes the pattern space. Some of the commands use a hold space to save all or part of the pattern space for subsequent retrieval. An address is either a decimal number that counts input lines cumulatively across files, a $ that addresses the last line of input, or a context address, i.e., a I regular expression I in the style of ed(l) modified thus: In a context address, the construction \?regular expression?, where ? is any character, is identical to I regular expression I. Note that in the context address \xa.bc\xdefx, the second x stands for itself, so that the regular expression is a.bcxdef. The escape sequence \n matches a new-line embedded in the pattern space. A period • matches any character except the terminal new-line of the pattern space. A command line with no addresses selects every pattern space. A command line with one address selects each pattern space that matches the address. A command line with two addresses selects the inclusive range from the first pattern space that matches the first address through the next pattern space that matches the second. (If the second address is a number less than or equal to the line number first selected, only one line is selected.) Thereafter the process is repeated, looking again for the first address. Editing commands can be applied only to non-selected pattern spaces by use of the negation function ! (below). - 1 -
- Page 459 and 460: NROFF(l) NROFF(l) NAME nroff - form
- Page 461 and 462: OD (1) OD (1) NAME od - octal dump
- Page 463 and 464: PACK ( 1) PACK( l ) NAME pack, peat
- Page 465: PASSWD ( l ) PASSWD ( l ) NAME pass
- Page 468 and 469: PASTE (l) PASTE (l) pr(l): pr -t -
- Page 471 and 472: PR (l) PR (l) NAME pr - print files
- Page 473 and 474: PROF ( 1) PROF ( 1) NAME prof - dis
- Page 475 and 476: PRS ( l ) PRS ( l ) NAME prs - prin
- Page 477 and 478: PRS ( 1 ) PRS ( 1 ) TABLE 1 (Contin
- Page 479 and 480: PS ( l ) PS ( l ) NAME ps - report
- Page 481: PS (l) PS (l) WCHAN (1) The event f
- Page 484 and 485: PTX ( 1) PTX ( 1) SEE ALSO nroff( l
- Page 487 and 488: REGCMP ( 1 ) REGCMP (l) NAME regcmp
- Page 489: RM ( l ) RM (l) NAME rm, rmdir - re
- Page 492 and 493: I�
- Page 495: SCCSDIFF ( 1 ) SCCSDIFF ( 1 ) NAME
- Page 499 and 500: SDB ( l ) SDB ( 1) NAME sdb - symbo
- Page 501 and 502: � I SDB ( 1) SDB ( 1) file may ov
- Page 503 and 504: SDB ( 1) SDB ( 1) e directory file-
- Page 505 and 506: SDB ( 1 ) SDB ( 1 ) execution. B Pr
- Page 507: SDB ( 1 ) SDB ( 1 ) WARNINGS BUGS W
- Page 512 and 513: SED ( 1) SED ( 1) In the following
- Page 515 and 516: SETPRINT ( 1 ) SETPRINT ( 1 ) NAME
- Page 517 and 518: -� SH ( l ) NAME SH ( l ) sh, rsh
- Page 519 and 520: SH ( 1 ) SH(l) positional parameter
- Page 521 and 522: SH ( 1 ) word >> word
- Page 523 and 524: SH ( 1 ) SH ( 1) cd [ arg ] Change
- Page 525 and 526: SH (l) SH (l) Invocation . If the s
- Page 527 and 528: SHFORM (I) {AT&T UNIX PC only ) SHF
- Page 529 and 530: ( \ SHFORM(I) (AT&T UNIX PC only )
- Page 531 and 532: SIZE ( 1 ) SIZE ( 1) NAME size - pr
- Page 533: �· ! SLEEP (I) SLEEP (I) NAME sl
- Page 536 and 537: SORT(l) SORT(l) 0 The next argument
- Page 538 and 539: SPELL {l) SPELL (l) FILES spellin s
- Page 540 and 541: n__
- Page 543 and 544: STTY ( 1) STTY(l) NAME stty - set t
- Page 545: STTY ( 1) lfkc ( -lfkc) echonl ( -e
- Page 548 and 549: �· ·· .... . _ .....
- Page 550 and 551: �- . .�
- Page 552 and 553: � ·. ____ .
- Page 554 and 555: TABS (1) TABS ( 1) -u 1,12,20,44 UN
- Page 556 and 557: � \_ )
- Page 559 and 560: TAR ( 1 ) TAR ( 1) NAME tar - tape
SDIFF ( 1)<br />
SDIFF(l)<br />
On exit from the editor, the resulting file is concatenated<br />
on the end of the output file.<br />
SEE ALSO<br />
diff( l), ed(l).<br />
- 2 -<br />
�<br />
. J