07-21-2010
Hi.
The id command is generally universally available.
10 More Discussions You Might Find Interesting
1. SCO
Hi All,
I am new to shell scripting.
Can someone let me know, how to check whether the user exists in the remote system?
I am building a new unix box and before I proceed installing the appliation , I want to check whether the required users are created in the system .
how to do this ?... (1 Reply)
Discussion started by: Srini75
1 Replies
2. Shell Programming and Scripting
is there a direct command to find whether directory is empty, -s option doesn't seem to work.
Mark. (2 Replies)
Discussion started by: markjason
2 Replies
3. Shell Programming and Scripting
Hi all,
I've been trying to find a good check I can put it in to a shell script to see if a given user exists.
Some of the things I've thought about is checking whether they have a home directory, but not all users have a home directory. I've thought about grepping the /etc/passwd file for... (4 Replies)
Discussion started by: _Spare_Ribs_
4 Replies
4. HP-UX
Hi all,
Is there any system wide limit on number of user threads. I only find nkthread as a tunable parameter,apart from the `per process limit`. (1 Reply)
Discussion started by: Krsh
1 Replies
5. Shell Programming and Scripting
I will have to process multiple files with same name everyday.
My requirement is:
If on a certain day I see that filename.txt exists then the contents of the filename.txt would be added/append
to the former file contents.Each time it sees the file the content would be added.But the header ... (8 Replies)
Discussion started by: RubinPat
8 Replies
6. Shell Programming and Scripting
Hello!
I'm stuck with a problem that i can't solve. I'm very new to unix, linux and shell scripting i might add. I'm trying to create a script that will execute as follows:
First start the script - sh exist
Then the prompt asks the user to input a username to check if it exists within the... (6 Replies)
Discussion started by: bib2006
6 Replies
7. Shell Programming and Scripting
Hello all,
Would like to know how to find records between two files which are not exists in one another in one. For example: I've two files "fileA" and "fileB" and want to find record from "fileB" which does not exists in "fileA".
fileA
--------
ABCD
DEFG
GHIJ
KLMN
NOPQ
RSTU
VUWX... (5 Replies)
Discussion started by: nvkuriseti
5 Replies
8. UNIX for Dummies Questions & Answers
I need to check if an entry input by the user is in a file. If so, I need to run a command, and if it does not exist then it should output entry does not exist.
So I have so far...
echo "Enter record:"
read record
//command || //command
Can I use an if statement to do this? (3 Replies)
Discussion started by: itech4814
3 Replies
9. Shell Programming and Scripting
Hi all
I have a list of file names in array. But this file names are not exact. so i want to search whether a file exists or not using regular expression.
code snippet:
if ;
then
echo "File exists"
else
echo "File does not exits"
fi
over here "*EQST*" should be treated as a regular... (4 Replies)
Discussion started by: Ganesh_more
4 Replies
10. Red Hat
Hi all, Hope everyone doing good.
Let me come to point, i have setup-ed a LDAP server and client machines
Server works perfect, while make a search from client machine it too get the Query from LDAP server, But while i switch user it says user not exists
# su - babin
su: user babin does... (3 Replies)
Discussion started by: babinlonston
3 Replies
LEARN ABOUT NETBSD
uuidgen
UUIDGEN(1) BSD General Commands Manual UUIDGEN(1)
NAME
uuidgen -- generate universally unique identifiers
SYNOPSIS
uuidgen [-1s] [-n count] [-o filename]
DESCRIPTION
The uuidgen utility by default generates a single universally unique identifier (UUID), also known as a globally unique identifier (GUID).
By default, uuidgen generates a single UUID and outputs it in the standard string representation to stdout. The following options can be
used to change the behavior of uuidgen:
-1 This option only has effect if multiple identifiers are to be generated and instructs uuidgen to not generate them in
batch, but one at a time.
-n count This option controls the number of identifiers generated. By default, multiple identifiers are generated in batch.
-o filename Redirect output to filename instead of stdout.
-s Output UUIDs as initialized C structures, rather than in the standard string format.
Batched generation yields a dense set of identifiers in such a way that there is no identifier that is larger than the smallest identifier in
the set and smaller than the largest identifier in the set and that is not already in the set.
When generating the identifiers one at a time, the identifiers will be close to each other, but operating system latency and processing time
will be reflected in the distance between two successive identifiers.
DIAGNOSTICS
The uuidgen utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
uuidgen(2), uuid(3)
HISTORY
The uuidgen command first appeared in NetBSD 3.0.
BSD
September 13, 2004 BSD