10-26-2005
-h option
Hi
what does the following mean in shell scripts (-h option)
val contains a string.
while (-h "$val")
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
We have started to us the su option on our production server. We log in with our own id and then su into a special id to perform various tasks. This allows our actions to be monitored.
I need to know how to use the su option when doing an ftp between two servers. I noticed that when I log into... (1 Reply)
Discussion started by: lesstjm
1 Replies
2. Programming
my yacc output file y.tab.c is not compiling using cc y.tab.c -ly command
.possibily option flag -ly is not correct.i m using red hat linux 9.please give solutions. (4 Replies)
Discussion started by: kuldeep_bora
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Is there a no to all option when copying a bunch of files? instead of pressing enter endlessly.
Thanks (6 Replies)
Discussion started by: td_kuoj3
6 Replies
4. Shell Programming and Scripting
Hi,
I need one help for choosing best option among sed, perl and awk.
I need to search and replace thousand files for a text and need to replace it. I am in confusion for choosing the option for best results.
Because by using sed option its taking too much time for searching and replacing... (3 Replies)
Discussion started by: dbsurf
3 Replies
5. Shell Programming and Scripting
Hi all,
I am parsing command line options using getopts.
The problem is that mandatory argument options following ":" is taking next option as argument if it is not followed by any argument.
Below is the script:
while getopts :hd:t:s:l:p:f: opt
do
case "$opt" in
-h|-\?)... (2 Replies)
Discussion started by: gurukottur
2 Replies
6. Programming
hi everybody, can somebody tell me what -R option on g++ on solaris means :
g++ -DAIX -fpic -static -o printps printps.o -L/epost2/blitz/xercesc1_1 /lib -L/oracle/OraHome/lib32/ L/epost2/blitz/lib -lxerces-c1_1 -lhmltods -lhmlt ops -lgeneric -lnotify -lutil -lclntsh `cat... (0 Replies)
Discussion started by: eternalflame
0 Replies
7. Shell Programming and Scripting
Hello,
I am still in the process of learning Shell Programming. The online manual, that I am referring to had following question:
I made a script as follows:
df --block-size=1GB | tr -s ' '| cut -d' ' -f2,5 | grep -v 1GB* | sort -k1,2n | tail -1 | cut -d' ' -f2 | cut -d '%' -f1 and it... (2 Replies)
Discussion started by: shahdharmit
2 Replies
8. Shell Programming and Scripting
To find all the files in your home directory that have been edited in some way since the last tar file, use this command:
find . -newer backup.tar.gz
Is anyone familiar with an older solution?
looking to identify files older then 15mins across several directories.
thanks,
manny (2 Replies)
Discussion started by: mr_manny
2 Replies
9. Shell Programming and Scripting
Hi,
I'm new to shell scripting and I'm trying to read some code I need to use. Could you help me out on what it's doing? I read this as.... if the directory has files then rm all the files in that directory. I'm not sure....
if ; then
run "rm -rf ${TSP_FILEPATH_PLUGIN_DIR}";
fi
run... (8 Replies)
Discussion started by: jdilts
8 Replies
10. Solaris
Hi,
I installed some packages required by an app built with python.
But when I try python setup.py install, I get the following error:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.2.0/../../../../sparc-sun-solaris2.10/bin/as: unrecognized option `-m32'
Could anyone tell me what's wrong... (4 Replies)
Discussion started by: Kimkun
4 Replies
LEARN ABOUT CENTOS
complex
Complex(3) OCaml library Complex(3)
NAME
Complex - Complex numbers.
Module
Module Complex
Documentation
Module Complex
: sig end
Complex numbers.
This module provides arithmetic operations on complex numbers. Complex numbers are represented by their real and imaginary parts (carte-
sian representation). Each part is represented by a double-precision floating-point number (type float ).
type t = {
re : float ;
im : float ;
}
The type of complex numbers. re is the real part and im the imaginary part.
val zero : t
The complex number 0 .
val one : t
The complex number 1 .
val i : t
The complex number i .
val neg : t -> t
Unary negation.
val conj : t -> t
Conjugate: given the complex x + i.y , returns x - i.y .
val add : t -> t -> t
Addition
val sub : t -> t -> t
Subtraction
val mul : t -> t -> t
Multiplication
val inv : t -> t
Multiplicative inverse ( 1/z ).
val div : t -> t -> t
Division
val sqrt : t -> t
Square root. The result x + i.y is such that x > 0 or x = 0 and y >= 0 . This function has a discontinuity along the negative real axis.
val norm2 : t -> float
Norm squared: given x + i.y , returns x^2 + y^2 .
val norm : t -> float
Norm: given x + i.y , returns sqrt(x^2 + y^2) .
val arg : t -> float
Argument. The argument of a complex number is the angle in the complex plane between the positive real axis and a line passing through
zero and the number. This angle ranges from -pi to pi . This function has a discontinuity along the negative real axis.
val polar : float -> float -> t
polar norm arg returns the complex having norm norm and argument arg .
val exp : t -> t
Exponentiation. exp z returns e to the z power.
val log : t -> t
Natural logarithm (in base e ).
val pow : t -> t -> t
Power function. pow z1 z2 returns z1 to the z2 power.
OCamldoc 2014-06-09 Complex(3)