07-06-2011
man test
test
Moderator's Comments:
|
|
Simply posting a link to a man page is discouraged here. Posting a link to aman page is fine, but please add more value to the post. Thanks.
|
|
10 More Discussions You Might Find Interesting
1. Programming
Hi everyone ,
Is there any predefined C function that tests whether an input is string or an integer?
Thank's in advance :) (3 Replies)
Discussion started by: qqq
3 Replies
2. Shell Programming and Scripting
I need to write a function that will work in sh/ksh shell that will test to see if a file has already been opened for writting by another user
has anyone written something like this? (3 Replies)
Discussion started by: johnsonbryce
3 Replies
3. Programming
Hi everybody,
I need to check in C program whether a given login is known on the system. Is there any system function that could do this ?
So far, all I could find is getpwnam(), which answers my problem by parsing the local password database. But won't work if a user is authenticated by... (2 Replies)
Discussion started by: xavier054
2 Replies
4. UNIX for Advanced & Expert Users
Hi,
I found this:
https://www.unix.com/unix-advanced-expert-users/27318-how-see-function-shell.html
which indicates I can use typeset -f to list the functions.
But it also lists the contents of the functions. Is there a
lighter weight way to see what is defined? Is there an
internal... (5 Replies)
Discussion started by: duderonomy
5 Replies
5. Shell Programming and Scripting
This is the code:
while test 1 -eq 1
do
read a
$a
if test $a = stop
then
break
fi
done
I read a command on every loop an execute it.
I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test.
For example echo hello.
Now the... (1 Reply)
Discussion started by: Max89
1 Replies
6. Shell Programming and Scripting
How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies
7. Shell Programming and Scripting
i am writing the following snippet and cannot figure out why the variable measType remains 0. it should be 1
I also tried "\#analog" and '\#analog' in the test statement and it still doesn't work. What is going on?
bash$ measType=0
bash$ read line < 2iconfig.ini
bash$ echo $line
#analog... (4 Replies)
Discussion started by: oahmad
4 Replies
8. UNIX for Dummies Questions & Answers
Hello Unix experts,
If I could get any explanations on why the code below doesn't work it would be great !
My input looks like that ("|" delimited):
Saaaaabbbbbccccc|ok
Sdddddfffffggggg|ok
The goal is, if $2 is "ok", to remove everything before the pattern given in the match function... (5 Replies)
Discussion started by: lucasvs
5 Replies
9. Shell Programming and Scripting
Hello everyone,
I have written simple script below to check if ip is added to interface
#!/usr/local/bin/bash
IFCONFIG="/sbin/ifconfig"
SERVICE="/usr/sbin/service"
IP="79.137.X.X"
GREP=$(${IFCONFIG} | grep ${IP})
ip_quantity_check () {
echo ${GREP} | wc -l
}
if ];... (2 Replies)
Discussion started by: bryn1u
2 Replies
10. UNIX for Beginners Questions & Answers
dear sir,
I am new to unix zone. need some explanation on the function used.
cat /apps/prd/venue/code/bin/std.funcs
#!/usr/bin/ksh
#-------------------------------------------------------------------
# printmsg: prints the message given in arg 1 with timestamp to
# stdout... (3 Replies)
Discussion started by: gowthamsoft
3 Replies
MAN(1) General Commands Manual MAN(1)
NAME
man - print sections of this manual
SYNOPSIS
man [ option ... ] [ chapter ] title ...
DESCRIPTION
Man locates and prints the section of this manual named title in the specified chapter. (In this context, the word `page' is often used as
a synonym for `section'.) The title is entered in lower case. The chapter number does not need a letter suffix. If no chapter is speci-
fied, the whole manual is searched for title and all occurrences of it are printed.
Options and their meanings are:
-t Phototypeset the section using troff(1).
-n Print the section on the standard output using nroff(1).
-k Display the output on a Tektronix 4014 terminal using troff(1) and tc(1).
-e Appended or prefixed to any of the above causes the manual section to be preprocessed by neqn or eqn(1); -e alone means -te.
-w Print the path names of the manual sections, but do not print the sections themselves.
(default)
Copy an already formatted manual section to the terminal, or, if none is available, act as -n. It may be necessary to use a filter
to adapt the output to the particular terminal's characteristics.
Further options, e.g. to specify the kind of terminal you have, are passed on to troff(1) or nroff. Options and chapter may be changed
before each title.
For example:
man man
would reproduce this section, as well as any other sections named man that may exist in other chapters of the manual, e.g. man(7).
FILES
/usr/man/man?/*
/usr/man/cat?/*
SEE ALSO
nroff(1), eqn(1), tc(1), man(7)
BUGS
The manual is supposed to be reproducible either on a phototypesetter or on a terminal. However, on a terminal some information is neces-
sarily lost.
MAN(1)