10-16-2013
Your output can't be correct. [[ condition1 == condition2 ]] can never be true.
(not to mention why Enter password: comes before "File movement", or even why "File movement" has quotes around it)
If you expect accurate help, you should provide accurate information.
10 More Discussions You Might Find Interesting
1. HP-UX
Hi
i have compiled and installed bash 3.2 on my hp-ux parisc
its in path /usr/local/pkg/bash/bin/bash .....When im search for this bash (through whereis bash) im not findind but other which i hve done in same procedure( gettext,m4) ..Im able to find through whereis search option
can any1... (3 Replies)
Discussion started by: vasanthan
3 Replies
2. Shell Programming and Scripting
Okay, I have two scripts, the first one does some stuff, and comes to a point where it has this:
Right here it runs a quick script to start something that writes to a log file.
/usr/bin/tail -f ${pathVar}/nohup_${servVar}.out |
while read -r line
do
] && continue
cd ${pathVar}... (0 Replies)
Discussion started by: cbo0485
0 Replies
3. Shell Programming and Scripting
i am having a weird error on mac os x running some shell scripts. i am a complete newbie at this and this question concerns 2 scripts. one of which a friend of mine wrote (videochecker.sh) a couple weeks ago and it's been running fine on another machine.
then last week i wrote capture.sh and it... (2 Replies)
Discussion started by: danpaluska
2 Replies
4. Shell Programming and Scripting
Hi All,
Linux lxs3er06 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux
Issue:
While executing shell scripts in bash shell, following error messages are thrown:
rm:command not found
On doing little investigation, I added '/bin' to $PATH and on doing echo... (9 Replies)
Discussion started by: a1_win
9 Replies
5. Shell Programming and Scripting
Hi I need a bash script that can search through a text file and when it finds 'FSS1206' I need to put a Letter F 100 spaces after the second instance of FSS1206
The format is the same throughout the file I need to repeat this on every time it finds the second 'FSS1206' in the file
I have... (0 Replies)
Discussion started by: firefox2k2
0 Replies
6. UNIX for Dummies Questions & Answers
# check host value regex='^(||1|2|25)(\.(||1|2|25)){3}$' if ')" != "" ]; then if ]; then echo host $host not found exit 4 fi elif ]; then echo $host is an invalid host address exit 5 fi
espeacailly the top regex part?
---------- Post updated at 06:58 PM ---------- Previous update was... (1 Reply)
Discussion started by: kevin298
1 Replies
7. Shell Programming and Scripting
Hello everyone,
I am having problems figuring this out.
This script below is supposed to create a list of file names with their "md5sum", in a file "lib-list.txt"
When I run it "sh component-list.sh " I get this:component-list.sh: 4: component-list.sh: function: not found
component-list.sh:... (4 Replies)
Discussion started by: joemb
4 Replies
8. Shell Programming and Scripting
Hello.
In bash, is there a way to trap error "file not found" when a script call another script which is not found; then abort.
Example ( part of script running with -x option set) :
+ return 0
+ RETURN_CODE=0
+ ]
+ /root/bin/200_yast_install/00_reset_yast_install
bash:... (5 Replies)
Discussion started by: jcdole
5 Replies
9. Shell Programming and Scripting
In the bash below I am searching the filevirus-scan.log for the Infected files: 0 line (in bold) and each line for OK.
If both of these are true then the function execute is automatically called and processing starts. If both these conditions are not meet then the line in the
file is sent to the... (2 Replies)
Discussion started by: cmccabe
2 Replies
10. Shell Programming and Scripting
Hello,
I have a question regarding while loop and existence of files.
I am running under ubuntu 18.04 bionic, have around fifty video files inside the directory.
script:
for file in *.mp4
do
/root/bin/ffmpeg -i $file \
-i $(basename "${file/.mp4}").bs.srt \
-i $(basename... (12 Replies)
Discussion started by: baris35
12 Replies
exp(3m) exp(3m)
Name
exp, expm1, log, log10, log1p, pow - exponential, logarithm, power
Syntax
#include <math.h>
double exp(x)
double x;
float fexp(x)
float x;
double expm1(x)
double x;
float fexpm1(x)
float x;
double log(x)
double x;
float flog(x)
float x;
double log10(x)
double x;
float flog10(x)
float x;
double log1p(x)
double x;
float flog1p(x)
float x;
double pow(x,y)
double x,y;
Description
The and functions return the exponential function of x for double and float data types, respectively.
The and functions return exp(x-1 accurately, including tiny x for double and float data types, respectively.
The and functions return the natural logarithm of x for double and float data types, respectively.
The and functions return the logarithm of x to base 10 for double and float data types, respectively.
The and functions return log(1+x) accurately, including tiny x for double and float data types, respectively.
The function returns x**y.
Error (due to roundoff)
The and functions are accurate to within an ulp, and is accurate to within approximately 2 ulps; an ulp is one Unit in the Last Place.
The function is accurate to within 2 ulps when its magnitude is moderate, but becomes less accurate as the result approaches the overflow
or underflow thresholds. Theoretically, as these thresholds are approached, almost as many bits could be lost from the result as are indi-
cated in the exponent field of the floating-point format for the resultant number. In other words, up to 11 bits for an IEEE 754 double-
precision floating-point number. However, testing has never verified loss of precision as drastic as 11 bits. The worst cases have shown
accuracy of results to within 300 ulps for IEEE 754 double-precision floating-point numbers. In general, a (integer, integer) result is
exact until it is larger than 2**53 (for IEEE 754 double-precision floating-point).
Return Values
All of the double precision functions return NaN if x or y is NaN.
The function returns HUGE_VAL when the correct value would overflow, and zero when the correct value would underflow.
The and functions return NaN when x is less than or equal to zero or when the correct value would overflow.
The function returns NaN if x or y is NaN. When both x and y are zero, 1.0 is returned. When x is negative and y is not an integer, NaN
is returned. If x is zero and y is negative, -HUGE_VAL is returned.
The function returns NaN when x is negative.
See Also
math(3m)
RISC exp(3m)