hey guys
having some trouble figuring this out.
my program is supposed to take a name of a directory as a command line argument and change the filenames inside that directory to lowercase.
what i dont get is how you access that directory and go thru all the files and change the filenames... (1 Reply)
i have many files with extention filename.ASN_ERROR~ at a path. I want to move these files to another path and change extension to .ASN
There are more then 80,000 files so i cant use manual commands
muneebr (5 Replies)
Dear All,
I have some thousands of files in a folder and i need to change those file names without opening the file (no need to change anything in the file content, need to change the file name only). The filenames are as follows:
Myfile_name.1_parameter
Myfile_name.2_parameter... (6 Replies)
I have written a csh script that changes the name of file from src to dst.
I am getting the error below:
TESTAmvfiles
DONE TESTAmvfiles
set: Variable name must begin with a letter.
The csh script is:
#!/bin/csh
#... (0 Replies)
I have file names as shown and want to change the name to have only the first four numbers.
/home/chrisd/Desktop/nips/nips_2013/5212-learning-feature-selection-dependencies-in-multi-task-learning.pdf
/home/chrisd/Desktop/nips/nips_2013/5213-parametric-task-learning.pdf... (3 Replies)
I have a series of files as follows
file-1.pdf
file-2.pdf
file-3.pdf
file-4.pdf
file-5.pdf
file-6.pdf
file-7.pdf
I want to have the file names with odd numbers
starting from an initial number, for example 2000.
The result would be the following:
file-2001.pdf
file-2003.pdf... (9 Replies)
I want to change the name of several files within a folders (directory) and subdirectories in OS X. If I only wanted to change file names within the directory I guess I would use:
rm photo*.jpg picture*.jpg
I have lots of subdirectories, is there a way of getting the file changes for all... (5 Replies)
exp(3) Library Functions Manual exp(3)NAME
exp, expm1, log, log2, log10, log1p, pow - Exponential, logarithm, and power functions
LIBRARY
Math Library (libm.a)
SYNOPSIS
#include <math.h>
double exp (double x); float expf (float x); long double expl (long double x); double expm1 (double x); float expm1f (float
x); long double expm1l (long double x); double log (double x); float logf (float x); long double logl (long double x); double
log2 (double x); float log2f (float x); long double log2l (long double x); double log10 (double x); float log10f (float x); long
double log10l (long double x); double log1p (double y); float log1pf (float y); long double log1pl (long double y); double pow
(double x, double y); float powf (float x, float y); long double powl (long double x, long double y);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
exp(): XPG4
expm1(): XPG4-UNIX
log(): XPG4
log10(): XPG4
log1p(): XPG4-UNIX
pow(): XPG4
Refer to the standards(5) reference page for more information about industry standards and associated tags.
DESCRIPTION
The exp(), expf(), and expl() functions compute the value of the exponential function, defined as e**x, where e is the constant used as a
base for natural logarithms.
The expm1(), expm1f(), and expm1l() functions compute exp(x) - 1 accurately, even for tiny x.
The log(), logf(), and logl() functions compute the natural (base e) logarithm of x.
The log2(), log2f(), and log2l() functions compute the base 2 logarithm of x.
The log10(), log10f(), and log10l() functions compute the common (base 10) logarithm of x.
The log1p(), log1pf(), and log1pl() functions compute log(1+y) accurately, even for tiny y.
The pow(), powf(), and powl() functions raise a floating-point base x to a floating-point exponent y. The value of pow(x,y) is computed as
e**(y ln(x)) for positive x. If x is 0 or negative, see your language reference manual.
Passing a NaN input value to pow() produces a NaN result for y not equal to 0. For pow(NaN,0), see your language reference manual.
The following table describes function behavior in response to exceptional arguments:
-------------------------------------------------------------------------
Function Exceptional Argument Routine Behavior
-------------------------------------------------------------------------
exp(), expf(), expl() x > ln(max_float) Overflow
exp(), expf(), expl() x < ln(min_float) Underflow
expm1(), expm1f(), expm1l() x > ln(max_float) Overflow
expm1(), expm1f(), expm1l() x < ln(min_float) Underflow
log(), logf(), logl() x < 0 Invalid argument
log(), logf(), logl() x = 0 Overflow
log2(), log2f(), log2l() x < 0 Invalid argument
log2(), logf2(), log2l() x = 0 Overflow
log10(), log10f(), log10l() x < 0 Invalid argument
log10(), log10f(), log10l() x = 0 Overflow
log1p(), log1pf(), log1pl() 1+y < 0 Invalid argument
log1p(), log1pf(), log1pl() 1+y = 0 Overflow
pow(), powf(), powl() y ln(x) > ln(max_float) Overflow
pow(), powf(), powl() y ln(x) < ln(min_float) Underflow
-------------------------------------------------------------------------
The following table lists boundary values used by these functions:
-----------------------------------------------------------------------------
Value Data Hexadecimal Value Decimal Value
Name Type
-----------------------------------------------------------------------------
ln(max_float) S_FLOAT 42B17218 88.7228391
T_FLOAT 40862E42FEFA39EF 709.7827128933840
ln(min_float) S_FLOAT C2CE8ED0 -103.2789
T_FLOAT C0874385446D71C3 -744.4400719213813
-----------------------------------------------------------------------------
delim off
exp(3)