UNGET(1s,C) AIX Commands Reference UNGET(1s,C) ------------------------------------------------------------------------------- unget PURPOSE Cancels a previous get command. SYNTAX +-----------+ unget ---| +-------+ |-- file --| +-| -n |-+ ^ | ^| -rSID || +------+ || -s || |+-------+| +---------+ DESCRIPTION The unget command allows you to restore a g-file created with a get -e before the new delta is created, and therefore discarding the changes (see "get" and "delta"). If you specify a - (hyphen) in place of file, standard input is read, and each line of standard input is interpreted as the name of a Source Code Control System (SCCS) file. The unget command continues to take input until it reaches an end of file character, which is a Ctrl-D if input is from the keyboard. If you specify a directory in place of file, the unget command performs the requested actions on all SCCS files (those files with the s. prefix). FLAGS Each flag or group of flags applies independently to each named file. -n Prevents the automatic deletion of the g-file. This flag allows you to retain the edited version of the file without making a delta. -rSID Specifies the new delta that would have been created by the next use of the delta command. You must use this flag if you have two or more pending deltas to the file under the same login name. You can look at the p-file to see if you have more than one delta pending to a particular SID under the same login name. The SID specification must unambiguously specify only one SID to discard, or unget displays an error message and stops running. -s Suppresses writing the deleted SID to standard output. Processed November 8, 1990 UNGET(1s,C) 1 UNGET(1s,C) AIX Commands Reference UNGET(1s,C) EXAMPLE To discard the changes you have made to an SCCS file after doing a get -e: unget s.prog.c RELATED INFORMATION See the following commands: "delta," "get," and "sact." See the sccsfile file in AIX Operating System Technical Reference. See the discussion of SCCS in AIX Operating System Programming Tools and Interfaces. Processed November 8, 1990 UNGET(1s,C) 2