unget(1) General Commands Manual unget(1)Name
unget - undo a previous get of an SCCS file
Syntax
unget [-rSID] [-s] [-n] files
Description
The command undoes the effect of a done prior to creating the intended new delta. If a directory is named, behaves as though each file in
the directory were specified as a named file, except that non-SCCS files and unreadable files are ignored. If - is given as a name, the
standard input is read, with each line being taken as the name of an SCCS file to be processed.
Options
Keyletter arguments apply independently to each named file.
-n Retains copy of SCCS file which normally is removed from current directory.
-rSID Indicates delta version number. This would have been specified by as the new delta. The use of this keyletter is necessary only
if two or more outstanding for editing on the same SCCS file were done by the same person (login name). A diagnostic results if
the specified SID is ambiguous, or if it is necessary and omitted on the command line.
-s Suppresses normal messages, on the standard output of the intended delta's SID.
Diagnostics
See for explanations.
See Alsodelta(1), get(1), sccs(1)
Guide to the Source Code Control System
unget(1)
Check Out this Related Man Page
sccs-unget(1) User Commands sccs-unget(1)NAME
sccs-unget, unget - undo a previous get of an SCCS file
SYNOPSIS
unget [-ns] [-rsid] s.filename...
DESCRIPTION
The unget utility undoes the effect of a get-e command executed before the creation of the pending delta.
If a directory name is used in place of the s.filename argument, the unget command applies to all s.files in that directory. Unreadable
s.files produce an error; processing continues with the next file (if any). The use of `-' as the s.filename argument indicates that the
names of files are to be read from the standard input, one s.file per line.
OPTIONS
The following options are supported:
-n Retains the retrieved version, which is otherwise removed.
-s Suppress display of the SCCS delta ID (SID).
-rsid When multiple versions are checked out, this option specifies which pending delta to abort. A diagnostic results if the specified
SID is ambiguous, or if it is necessary but omitted from the command line.
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of unget: LANG, LC_ALL, LC_COLLATE,
LC_CTYPE, LC_MESSAGES, and NLSPATH.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsprot |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO sccs(1), sccs-delta(1), sccs-get(1), sccs-help(1), sccs-prs(1), sccs-prt(1), sccs-rmdel(1), sccs-sact(1), sccs-sccsdiff(1), what(1), sccs-
file(4), attributes(5), environ(5), standards(5)DIAGNOSTICS
Use the SCCS help command for explanations (see sccs-help(1)).
SunOS 5.11 2 Jul 2007 sccs-unget(1)
Hi Friends,
When Iam running c program in redhat linux 7.3 version and PCQ Linux 8.0 version, its taking around 20 seconds. But when Iam running it in HP-UX Release 11i, its taking around 3 minutes. Can anyone throw light on this.
Thanks in advance,
Praveen. (11 Replies)
I'm trying to write a program that will open an existing file supplied by the command line argument and then replace words with "We" or "we" by "I" and "a" or "A" by "The". When I run the program it reads the file, changes the word but re writes it on a new line with only the replaced words not the... (1 Reply)
I am trying to work this little program, its not working..
int main()
{
FILE *fp;
char *args;
pid_t child, exited_pid;
int status = 0;
*args = "less";
fp = popen("ls", "r");
child =... (4 Replies)
what is the difference between
fopen and open
fread and read
fwrite and write
open and create
why this much of functions for the i/o when everything does the same...?
What is their major difference?
In which case, which is the best to use.
:confused:'ed Collins (2 Replies)
i have been googling, and came to the conclusion that there is not standard C library (or commonly used) that reads a complete line of a file, without a size parameter being involved.
so, as a little exercise i decided to think it over, and make my own
i came up with an idea, and wanted to... (2 Replies)
Good evening, I'm trying to do my own shell and I encountered some issues while creating it. Indeed when I try such a command I have
DAUPHINE> DAUPHINE> ls -l | grep terminal > fichier
DAUPHINE> cat fichier
My shell is named DAUPHINE
Whereas I should have:
Code:
... (0 Replies)
I am building a wrapper around fgets, and fighting crashes for no reason I can explain.
I have stripped it down as far as I can and it still crashes.
#include <stdio.h>
#include <stdlib.h>
typedef struct {
char buf;
FILE *fp;
int type;
} wrap;
wrap... (12 Replies)
I have a huge text file, about 52 GB. In the file, there are patterns like these:
]
]
]
]One can see that there is text within patterns such as and ], and I am only interested in ]. There is text before and after all these patterns too, for example,
''Anarchism''' is a ] that advocates ]... (3 Replies)
I have an array in an external file, "array.txt", which contains:
char *testarray={"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};I want to be able to add an element to this array, and have that element display, whenever I call it, without having to recompile... (29 Replies)
Hi, all,
I'm writing a BBS telnet client, and am trying to implement a status bar into it, at the bottom of the screen.
I am using NCurses to accomplish this. So far, it appears to be working, that is, upon connecting to BBS, it
will display the status bar, and then quickly disappear.
... (5 Replies)
Hi,
I have an array, that works well. But, I want to have it display every other line. Like so, 1, 3, 5, 7, etc, etc.
Here is the relevant code:
I'm sorry for the pastebin link. For some reason, I can't get the code to format properly with the code tags.
code tags work fine... everyone... (4 Replies)