am trying to write a script that test that the load average which is taken from the uptime command's output to make sure it doesn't pass a certain limit. each time I execute the script, it complains about interger errors.
if (2 Replies)
Hi folks,
In our product installation program we edit xml files by deleting lines and appending new lines instead of them.
For example:
update_Log4plsql_xml()
{
machineName=`uname -n`
hostIP=`cat /etc/hosts | grep ${machineName} | cut -f1`
trap 'clean_up | tee -a $installLog ; exit' 1 2... (0 Replies)
Hi,
When I compare currentfiledate to reportfiledate I get a "-bash:
currentfiledate=20090220080101
reportfiledate=20090219231245
if ; then
echo -ne "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! \n"
echo -ne "!! Running the load utility !! \n"
fi
Our... (15 Replies)
i have to pass an integer value to shell script which will mail the values to users.
I am able to pass string values like this.
try {
String strCmdToRun1 = new String { "sh", "mail.sh","hello"};
Process p1 = rtime.exec(strCmdToRun1);
BufferedReader output... (1 Reply)
okay i'm going to try to say this uber-simple:
I use dropbox (file-sync service). in order for dropbox sync files, they must be its children eg. somewhere under /home/jzacsh/Dropbox].
I want to now use it to keep my development files in sync across my machines:
easy: just move my dev. files... (2 Replies)
File_A contains Strings:
a
b
c
d
File_B contains Strings:
a
c
z
Need to have script written in either sh or ksh. Derive resultant files (File_New_A and File_New_B) from lists File_A and File_B where string elements in File_New_A and File_New_B are listed below.
Resultant... (7 Replies)
Hello, I'm trying to write a script which is listing files based on different preferences, like filetype or permissions. All is fine, except for one: I want to list files in /home which has a different owner than the home directory it is in.
Here is an example:
/home/UserA is the directory, and... (10 Replies)
Hi,
I am working in bash in Mac OSX, I have following 'input.txt' file:
<INFO> HypoTestTool: >>> Done running HypoTestInverter on the workspace combined
<INFO> HypoTestTool: The computed upper limit is: 11 +/- 1.02651
<INFO> HypoTestTool: expected limit (median) 11
<INFO> HypoTestTool: ... (13 Replies)
Hy friends, I am newbie to bash scripting, can anyone explain how b=${a/23/BB} # Substitute "BB" for "23". this line converts "b" into string and and "d" into Integer. Thanks in advance (4 Replies)
#!/bin/bash
#
name=$1
type=$2
number=1
for file in ./**
do
if
then
filenumber=00$number
elif
then
filenumber=0$number
fi
tempname="$name""$filenumber"."$type"
if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies
LEARN ABOUT DEBIAN
complex
Complex(3o) OCaml library Complex(3o)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 2012-06-26 Complex(3o)