04-08-2011
This functionality can be the executable, like /bin/which, or a shell built-in, ksh calls it whence. If the PATH is not exported, the execuatble may get a different answer. Some are more chatty than others. The built-in is faster, but /bin/sh probably has neither which nor whence.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Can anyone please explain what the difference is between these two commands
typeset - ?
export - i know with this even child process can read the variable
Declare - ?
i use bash shell
http://cnswww.cns.cwru.edu/~chet/bash/bashref.html#SEC58
states that
"
The typeset command is... (0 Replies)
Discussion started by: systemsb
0 Replies
2. AIX
hi anyone please tell me what is the difference between ls -b command and ls command. (1 Reply)
Discussion started by: sathish2win
1 Replies
3. UNIX for Dummies Questions & Answers
Hello all
the su with -l option is running normal with linux but when i try to run it on unix AIX 5.2.7 it's not working with -l option
any help (6 Replies)
Discussion started by: islam.said
6 Replies
4. Programming
Hi,
I am facing one problem only with mv command not with cp command. I have a test program
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <fcntl.h>
#include <errno.h>
int sync_file(char *file)
{
FILE *fp=NULL;... (6 Replies)
Discussion started by: dharshini123
6 Replies
5. UNIX for Dummies Questions & Answers
hi,
i am aa unix amateur and i am using tsh, csh and bash most of the time.
i have been looking over the net to find a summary of the differences in command syntax for example:
in csh and tsh you do
alias whatday date
while in bash and ksh you do
alias whatday=date
i just want more... (2 Replies)
Discussion started by: hobiwhenuknowme
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
What is the difference between these two?
find /some_dir -type f -exec chmod 070 {} \;
and
chmod 070 `find /some_dir -type f`
Thanks (5 Replies)
Discussion started by: lamont
5 Replies
7. Shell Programming and Scripting
For example, in this command:
ls /etc/rc0.d/ -print
ls /etc/rc0.d/ -printfThe outputs are quite different, why? (7 Replies)
Discussion started by: Henryyy
7 Replies
8. Shell Programming and Scripting
i have a bit of a unique question. is there a way to know if a script is being run from from the command line or from another script?
example:
command line:
### ./autorun.sh
ERROR: not permitted to run script from the commandline. exiting...
but if i put "autorun.sh" into another... (4 Replies)
Discussion started by: SkySmart
4 Replies
9. UNIX for Dummies Questions & Answers
Hello All,
I have been seeing a weird(at least for me, at this point) issue with a specific tar command.
1st fashion)
Normally, if i have to tar anything at the command line I tend to use
tar -cvzf <tar-file_name.tgz> <directory_to_be_tarred>
this command works perfectly fine with out... (1 Reply)
Discussion started by: getnetha
1 Replies
10. UNIX for Dummies Questions & Answers
What is the difference in these two awk command? Both returns same output but I am not sure what is the use of +0 in command 1.
awk -F "," '{print $1+0,$2+0,$3+0}'
awk -F "," '{print $1, $2, $3}' (3 Replies)
Discussion started by: later_troy
3 Replies
fdim(3M) fdim(3M)
NAME
fdim(), fdimf(), fdiml(), fdimw(), fdimq() - positive difference functions
SYNOPSIS
HP Integrity Server Only
DESCRIPTION
The function determines the positive difference between its arguments.
Integrity Server Only
is a version of it takes arguments and returns a result.
is a version of it takes arguments and returns a result.
is an version of it takes arguments and returns an result.
is equivalent to on HP-UX systems.
USAGE
To use this function, compile either with the default option or with the and options. To use (for Integrity servers) or compile with the
option. Make sure your program includes Link in the math library by specifying on the compiler or linker command line.
RETURN VALUE
The function returns the positive difference between x and y.
If x y, returns x y (and raises any exceptions resulting from the subtraction).
If x y, returns +zero.
If x or y is NaN, returns NaN.
If both arguments are NaNs, returns NaN.
returns a positively signed infinity in lieu of a value whose magnitude is too large, and raises the overflow and inexact exceptions.
ERRORS
No errors are defined.
SEE ALSO
fdim(3M), fmin(3M), math(5).
STANDARDS CONFORMANCE
: ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'')
fdim(3M)