get.1

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 755 行 · 第 1/2 页

1
755
字号
.\" SCCSID: @(#)get.1	8.1	9/11/90.tr ~.nr f 0.de SP.if n .ul\%[\fB\-\\$1\fR\\c.if n .ul 0\\$2\\$3...de SF.if n .ul\%[\fB\-\\$1\fR].if n .ul 0...ds M)  \fB\s-1MR\s+1\fR.ds R)  \fB\s-1RELEASE NUMBER\s+1\fR.ds S)  SCCS.\".ds S)  \s-1SCCS\s+1.\".ds I)  \s-1SID\s+1.ds I)  SID.TH get 1.SH Nameget \- get a copy of SCCS file.SH Syntax.B get[\fB\-r\fISCCS\fR\|][\fB\-c\fIcutoff\fR\|][\fB\-i\fIlist\fR\|][\fB\-x\fIlist\fR\|][\fB\-a\fIseq-no.\fR\|][\fB\-k\fR][\fB\-e\fR][\fB\-l\fR\|[\fBp\fR\|]\|][\fB\-p\fR][\fB\-m\fR][\fB\-n\fR][\fB\-s\fR][\fB\-b\fR][\fB\-g\fR][\fB\-t\fR] \fIfile...\fR.SH Description.NXB "get command (sccs)".NXB "SCCS file" "getting".NXA "get command (sccs)" "delta command (sccs)".NXA "get command (sccs)" "unget command (sccs)".NXA "get command (sccs)" "rmdel command (sccs)".NXS "SCCS identification string" "SID"The.PN getcommand generates an \s-1ASCII\s+1 text file fromeach named \*(S) file according to the specifications givenby its options.The options, which begin with \fB\-\fR,can be specified in any order,but all options apply to all named \*(S) files.If a directory is named,.PN getbehaves as though each file in the directory werespecified as a named file,except that non-\*(S) files(last component of the path name does not begin with.BR s. )and unreadable files are silently ignored.If a name of \fB\-\fR is given, the standard input is read;each line of the standard input is taken to be the name of an \*(S) fileto be processed.Again, non-\*(S) files and unreadable files are silently ignored..PPThe generated text is normally written into a file called the.I g-filewhose name is derived from the \*(S) file name by simplyremoving the leading\fBs.\fR;(see also \fI\s-1FILES\s+1\fP, below)..PPEach of the options is explained belowas though only one \*(S) file is to be processed,but the effects of any options applies independently toeach named file..SH Options.NXR "get command (sccs)" "options".IP \fB\-r\fISID\fR 12Indicates specified delta version number.  Table~1 below shows, for the most useful cases, what versionof an \*(S) file is retrieved (as well as the \*(I)of the version to be eventually created by.MS delta 1if the.B \-eoption is also used),as a function of the \*(I) specified..IP \fB\-c\fIcutoff\fR 12The \fIcutoff\fR is a date-time in the following form:.EX	\s-1YY[MM[DD[HH[MM[SS]]]]]\s+1.EENo changes (deltas) to the \*(S) file that were created afterthe specified \fIcutoff\fR date-time are included in the generated\s-1ASCII\s+1 text file.Units omitted from the date-time defaultto their maximum possible values;that is,.B \-c7502is equivalent to.BR \-c750228235959 .Any number of non-numeric characters may separatethe various two digit pieces of the \fIcutoff\fR date-time.This feature allows one to specify a \fIcutoff\fR date in the form:\&"\fB\-c77/2/2 9:22:25\fP"..IP \fB\-e\fR 12Gets specified delta version for edit.  The.B \-eoption used in a.PN getfor a particular version (\*(I)) of the \*(S) file preventsfurther.PN getsfrom editing on the same \*(I) until.PN deltais executed or the.B j(joint edit) flag is set in the \*(S) file,see.MS admin 1 .Concurrent use of.PN get \-efor different \*(I)s is always allowed.If the SCCS front end processor is used,the command.PN get \-eis replaced by.B edit..IPIf the.I g-filegenerated by.PN getwith an.B \-eoption is accidentally ruined while being edited,  it may be regenerated by re-executing the.PN getcommand with the.B \-koptionin place of the \fB\-e\fP option..IPSCCSfile protection specified by theceiling, floor, and authorized user liststored in the \*(S) fileare enforced when the.B \-eoption is used.For further information, see .MS admin 1 ..IP \fB\-b\fR 12Gets delta from new branch and must be used with .B \-e option.This option is ignored if the.B bflag is not present in the fileor if the retrieveddelta is not a leaf delta.For further information, see .MS admin 1 .A leaf delta is one that has no successors onthe \*(S) file tree..NTA branch delta may always be created from a nonleaf delta..NE.IP \fB\-i\fIlist\fR 12Includes specified list of deltas.  The \fIlist\fR has the following syntax:.IP	<list> ::= <range> \(or <list> , <range>.br	<range> ::= \*(I) \(or \*(I) \- \*(I).IP\*(I), maybe in any form shown in the ``\*(I) Specified'' column ofTable~1.Partial \*(I)s are interpreted as shown in the ``\*(I) Retrieved''column of Table~1..IP \fB\-x\fIlist\fR 12Excludes specified list of deltas.  See the.B \-ioption for the \fIlist\fR format..IP \fB\-k\fR 12Does not expand ID keywords.   The.B \-koptionis implied by the.B \-eoption..IP \fB\-l [ p ]\fR 12Writesa deltasummary to an\fIl-file.\fRIf.B \-lpis usedthen an.I l-fileis not created;the delta summary is written on the standard output instead.See \fB\s-1FILES\s+1\fP for the format of the\fIl-file.\fR.IP \fB\-p\fR 12Writes text to stdout.  No.I g-fileis created.All output which normally goes to the standard outputgoes to file descriptor 2 instead,unless the.B \-soption is used,in which case it disappears..IP \fB\-s\fR 12Suppresses all messages, except those for fatal errors.  However,fatal error messages, which always go to file descriptor2, remain unaffected..IP \fB\-m\fR 12Precedes each text line with delta version number.  The format is:\*(I),followed by a horizontal tab, followed by the text line..IP \fB\-n\fR 12Precedes each text line with identification keyword.  The format is:%\&M\&% value,followed by a horizontal tab,followed by the text line.When both the.B \-mand.B \-noption are used,the format is:%\&M\&% value,followed by a horizontal tab,followed by the.B \-moption generated format..IP \fB\-g\fR 12Suppressesthe actual retrieval of text from the \*(S) file.It is primarily used to generate an\fIl-file\fR,or to verify the existence of a particular \*(I)..IP \fB\-t\fR 12Gets most recently created (top) delta.  For example,.BR \-r1 ),orrelease and level,for example,.BR \-r1.2 )..IP \fB\-u\fR 12Sets the time of the g\-file to the time of the s\-file.  This resultsin a g-file with a time equal to the last delta.  This is useful forbuild scripts which extract all files from the SCCS database and then doa make..IP \fB\-a\fIseq-no.\fR 12Retrieves the specified delta sequence number.  For further information, see .MS sccsfile 5 .This option is used by the.PN combcommand.It is not a generally useful option,and users should not use it.If both the.B \-rand.B \-aoption are specified,the.B \-aoption is used.Care should be taken when using the.B \-aoption in conjunction with the.B \-eoption,as the \*(I) of the delta to be createdmay not be what one expects.The.B \-roption can be used with the.B \-aand.B \-eoption to control the naming of the \*(I) of the delta tobe created..i0.PPFor each file processed,.PN getresponds (on the standard output) with the\*(I)being accessed andwith the number of lines retrieved from the \*(S) file..PPIf the.B \-eoption is used, the\*(I)of the delta to be made appearsafter the\*(I)accessed and before the number of lines generated.If there is more than one named fileor if a directory or standard input is named,each file name is printed(preceded by a new-line)before it is processed.If the.B \-ioption is used included deltas are listed following thenotation ``Included'';if the.B \-xoption is used, excluded deltas are listed following thenotation ``Excluded''..PPThe \s-1SCCS\s+1 identification strings are defined in the following table:.PP.TScenter ;lfHB lfHB lfHB lfHB lfHBlfHB lfHB lfHB lfHB lfHBl l l l l ._.sp 4p\s-1SID\s+1*	\fB\-b\fP Option	Other	\s-1SID\s+1	\s-1SID\s+1 of DeltaSpecified	Used\(dg	Conditions	Retrieved	to be Created.sp 4p_.sp 6pnone\(dd	no	R defaults to mR	mR.mL	mR.(mL\^+1)none\(dd	yes	R defaults to mR	mR.mL	mR.mL.(mB\^+1).1R	no	R > mR	mR.mL	R.1***R	no	R = mR	mR.mL	mR.(mL\^+1)R	yes	R > mR	mR.mL	mR.mL.(mB\^+1).1R	yes	R = mR	mR.mL	mR.mL.(mB\^+1).1R	\-	R < mR and	hR.mL**	hR.mL.(mB\^+1).1\^	\^	R does \fInot\fP exist	\^	\^R	\-	Trunk succ.#	R.mL	R.mL.(mB\^+1).1\^	\^	in release > R	\^	\^\^	\^	and R exists	\^	\^R.L	no	No trunk succ.	R.L	R.(L\^+1)R.L	yes	No trunk succ.	R.L	R.L.(mB\^+1).1R.L	\-	Trunk succ.	R.L	R.L.(mB\^+1).1\^	\^	in release \(>= R	\^	\^R.L.B	no	No branch succ.	R.L.B.mS	R.L.B.(mS\^+1)R.L.B	yes	No branch succ.	R.L.B.mS	R.L.(mB\^+1).1R.L.B.S	no	No branch succ.	R.L.B.S	R.L.B.(S\^+1)R.L.B.S	yes	No branch succ.	R.L.B.S	R.L.(mB\^+1).1R.L.B.S	\-	Branch succ.	R.L.B.S	R.L.(mB\^+1).1.sp 6p_.TE.TP "\w@***\ \ \ @u"*R, L, B, and S are the release, level,branch, and sequence components of the \s-1SID\s+1, in that order;m means maximum.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?