9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello Team,
I need your help on the following:
My input file a.txt is as below:
3330690|373846|108471
3330690|373846|108471
0640829|459725|100001
0640829|459725|100001
3330690|373847|108471
Here row 1 and row 2 of column 1 are identical but corresponding column 2 value are... (4 Replies)
Discussion started by: angshuman
4 Replies
2. Linux
Hi
I need to know what is the unique identifier for Linux OS even in a virtualized environment?
eg like Machine GUID for windows. I need to know something similar for linux, AIX, Solaris in virtualized environment.
Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies
3. Solaris
Hi
I need to know what is the unique identifier for solaris OS even in a virtualized environment?
Will "Using Universally Unique Identifiers" help?
virtinfo -u
Domain UUID: 9db53f14-f27c-69f9-a71c-8926e9ae6eed
If Not, then let me know?
Would appreciate if similar UNIQUE id (of... (3 Replies)
Discussion started by: skyineyes
3 Replies
4. UNIX for Dummies Questions & Answers
I would like to print unique lines without sort or unique. Unfortunately the server I am working on does not have sort or unique. I have not been able to contact the administrator of the server to ask him to add it for several weeks. (7 Replies)
Discussion started by: cokedude
7 Replies
5. Shell Programming and Scripting
I have 84 files with the following names splitseqs.1, spliseqs.2 etc.
and I want to change the .number to a unique filename.
E.g.
change splitseqs.1 into splitseqs.7114_1#24
and
change spliseqs.2 into splitseqs.7067_2#4
So all the current file names are unique, so are the new file names.... (1 Reply)
Discussion started by: avonm
1 Replies
6. HP-UX
I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email.
original solaris... (2 Replies)
Discussion started by: sparcguy
2 Replies
7. Shell Programming and Scripting
I have an archive file that holds a batch of statements. I would like to be able to extract a certain statement based on the unique customer # (ie. 123456). The end for each statement is noted by "ENDSTM".
I can find the line number for the beginning of the statement section with sed.
... (5 Replies)
Discussion started by: andrewsc
5 Replies
8. Shell Programming and Scripting
I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Discussion started by: cpolikowsky
2 Replies
9. UNIX for Advanced & Expert Users
I have been resently working on some ksh script. One of the line in the file writes:
.. /etc/.environment dev_env
I can not understand what this mean, all I know is .environment is unix system environment file. Is ".." a command? If some one can give me some clue where can I find information... (7 Replies)
Discussion started by: zzwu3591
7 Replies
CLEARENV(3) Library Functions Manual CLEARENV(3)
NAME
clearenv - clear the environment
SYNOPSIS
#include <stdlib.h>
int clearenv(void);
DESCRIPTION
The clearenv() function clears the environment of all name-value pairs and sets the value of the external variable environ to NULL.
RETURN VALUE
The clearenv() function returns zero on success, and a non-zero value on failure.
AVAILABILITY
Not in libc4, libc5. In glibc since glibc 2.0.
CONFORMING TO
Various Unix variants (DGUX, HPUX, QNX, ...). POSIX.9 (bindings for FORTRAN77). POSIX.1-1996 did not accept clearenv() and putenv(), but
changed its mind and scheduled these functions for some later issue of this standard (cf. B.4.6.1). However, SUSv3 only adds putenv(), and
rejected clearenv().
NOTES
Used in security-conscious applications. If it is unavailable the assignment
environ = NULL;
will probably do.
The DGUX and Tru64 manpages write: If environ has been modified by anything other than the putenv(), getenv(), or clearenv() functions,
then clearenv() will return an error and the process environment will remain unchanged.
SEE ALSO
getenv(3), putenv(3), setenv(3), unsetenv(3), environ(5)
Linux Programmer's Manual 2001-10-17 CLEARENV(3)