08-16-2005
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am trying to write a recursive FTP script and have come to a point where I need to test if the file is either a normal ascii file or a directory. My question is how do I test if the file is either ascii or directory. (1 Reply)
Discussion started by: aslamg
1 Replies
2. Programming
Hi everyone, i need your input on this. We can express a function recursivly like this
A(n) = (2 n = 0
5 n = 1
A(n − 1) + A(n − 2) % 47 n > 1
How would i go about constructing a recursive function for this?... (1 Reply)
Discussion started by: bebop1111116
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a problem with concatenation text files.
I have a directory, say 'foo'
Inside this folder, I have many sub folders, say 'oof1, oof2 .... oof20'
Each oof directory has a number of text files inside it. I need to
concatenate all the text files in oof directories within foo...... (1 Reply)
Discussion started by: Kerensa@unsw.ed
1 Replies
4. UNIX for Dummies Questions & Answers
Hi all,
I need to count the number of lines in all the files under a directory (several levels deep). I am feeling extremely dumb, but I don't know how to do that. Needless to say, I am not a shell script wiz... Any advice?
thanks in advance! (13 Replies)
Discussion started by: bimba17
13 Replies
5. UNIX for Dummies Questions & Answers
Is there anyway that I can change permissions on a directory and all its sub-directories and files using one single "chmod" command?? (5 Replies)
Discussion started by: the_red_dove
5 Replies
6. UNIX for Dummies Questions & Answers
I want to download every page on a particular website that has: "http://www.website.com/dir/?function=" as the beginning so any page that begins with that will be downloaded, so for example "http://www.website.com/dir/?function=summary&cat=1" and "http://www.website.com/dir/?function=detail&id=1"... (1 Reply)
Discussion started by: guitarscn
1 Replies
7. UNIX for Advanced & Expert Users
Hi,
on AIX 6.1 , in man document for grep :
-r
Searches directories recursively. By default, links to directories are followed.
But when I use :
oracle@XXX:/appli/XXX_SCRIPTS#grep -r subject *.sh
It returns nothing.
However I have at least one row in a file :
... (3 Replies)
Discussion started by: big123456
3 Replies
8. Shell Programming and Scripting
Hi,
I need help with recursive function. This is not a part of any homework or classroom related. I am trying to learn unix and working on a question posted on site. basically i have to create a script which does what rm -r does.
my code so far:
1 #!/bin/bash
2
3 function recursive... (2 Replies)
Discussion started by: bluebird13
2 Replies
9. Shell Programming and Scripting
I have a directory, say "DirA" with a bunch of subfolders 'Sub1, Sub2... etc.' Each subfolder has a number of csv files.
I want to delete the top ten rows of each csv file, then concatenate them and save the output as a csv file with the same name as the subfolder.
My code currently looks... (4 Replies)
Discussion started by: extnic
4 Replies
10. Shell Programming and Scripting
NB! I have already started a thread on this subject on ComputerHope (with the thread title "Recursive File Renaming & Logical Sorting"). However, on ComputerHope they are perhaps more specialized in Windows Command Prompt, and not that much in shell scripts for Bash (I guess).
I have a bulk... (1 Reply)
Discussion started by: JewzeyfGhewbelz
1 Replies
LEARN ABOUT NETBSD
scalbnf
SCALBN(3) BSD Library Functions Manual SCALBN(3)
NAME
scalbn, scalbnf, scalbnl -- exponent using FLT_RADIX
LIBRARY
Math Library (libm, -lm)
SYNOPSIS
#include <math.h>
double
scalbn(double x, int n);
float
scalbnf(float x, int n);
long double
scalbnl(long double x, int n);
DESCRIPTION
The scalbn(), scalbnf(), and scalbnl() functions compute x * r^n, where r is the radix of the machine's floating point arithmetic, defined by
the FLT_RADIX constant in <float.h>. The rationale is efficiency; r^n is not computed explicitly.
RETURN VALUES
As described above, upon successful completion, the described functions return the exponent computed using FLT_RADIX. Otherwise the follow-
ing may occur:
1. When the result would cause an overflow, a range error occurs and +-HUGE_VAL, +-HUGE_VALF, or +-HUGE_VALL is returned according to
the sign of x and the return type of the corresponding function.
2. When the correct value would cause an underflow and it is not representable, a range error occurs and either 0.0 or an implementa-
tion-defined value is returned. When an underflow occurs but the correct value is representable, a range error occurs but the
correct value is returned.
3. If x is +-0 or +-Inf, x is returned. Likewise, if n is zero, x is returned. If x is NaN, NaN is returned.
SEE ALSO
exp(3), frexp(3), ldexp(3), math(3)
STANDARDS
The described functions conform to ISO/IEC 9899:1999 (``ISO C99'').
BSD
September 18, 2011 BSD