Basically, the requirement is to process the files in ascending date
order, but descending suffix order
, and for every date and suffix, we need to check if the file exists and is greater than 0 size. Also, on failure, we need to output an appropriate message.
So far, I have tried this, but does give me expected sorted result, could someone point where I am doing the mistake :
# Here is the file.txt :
Thanks.
Last edited by scott_apc; 07-12-2015 at 01:34 AM..
Hi
How to create a shell script which takes in to account all the files present within a directory DIR one by one
e.g.
suppose i have a directory named DIR where there are files with the extension .ABC
i want to create shell script which processes all these files one by one.
... (1 Reply)
I want to do the following thing and I am newbie to Unix:
1) FTP files and save them in a folder
2) Pick the oldest file and also its name among the above FTPed files
3) Copy it to another folder X and also move the file to folder Y
I know how to do the first task i.e., FTP the files and... (1 Reply)
I have the following two files:
1st File:
1:1:100
2:101:400
3:401:450
4:451:600
5:601:980
6:981:1500
7:1501:1600
8:1601:1800
9:1801:2000
2nd File:
30
50
80
700 (2 Replies)
Hi
I have the folowing input file, the file looks like below
sftp>
.
..
archive
x001_ameint*.zip
x001_ameint_1.zip
x001_ameint_2.zip
x001_REPORTS*.zip
x001_REPORTS_1.zip
sftp>
I want my output to look like this
x001_ameint*.zip
x001_ameint_1.zip
x001_ameint_2.zip (1 Reply)
Hello Everyone,
I am new to scripting and confused with how to do this efficiently. I am trying to use AWK to do this.
I have a lot of files in a folder which has the data of my throughput measurements in two columns i.e. Serial # and Throughput. like this
177.994 847.9
178.996 ... (1 Reply)
Hi All,
I have a directory in which there will be several files. i want to get all the files and pass it to a piece of code for processing on the files.
This is the piece of code which does the processing.
tr "\n" "|" < (log file name) | tr "$" "\n" > output
echo ' ' >>output
while... (1 Reply)
Hi
I would like to run my script to process as many as 50 files at a time.
Currently my script is being called like so:
./import.sh -f filename
so I want to call my script in this way and it must execute every file in the directory
/var/local/dsx/import (1 Reply)
Hi All,
I have a log file which is attached here:
ACCTXN.ALLOC, ACCTXN.IDX, ACCTXN.UDX, AE_COMS, AGENCY are different file names present in my input file (it could be 000s files and all names are starting with ).
Now, I am interested in getting the files which are having " Predicted... (1 Reply)
Hello
I have a program cfxfrwb which is designed to remove headers from reports files.
The cfxfrwb is located in the following directory /u01/efin/v40/live/bin
I run the program against a single report file in the temp directory and it does it's job../cfxfrwb... (2 Replies)
Discussion started by: captainrhodes
2 Replies
LEARN ABOUT PHP
log1p
LOG1P(3) 1 LOG1P(3)log1p - Returns log(1 + number), computed in a way that is accurate even when the value of number is close to zeroSYNOPSIS
float log1p (float $number)
DESCRIPTION log1p(3) returns log(1 + $number) computed in a way that is accurate even when the value of $number is close to zero. log(3) might only
return log(1) in this case due to lack of precision.
PARAMETERS
o $number
- The argument to process
RETURN VALUES
log(1 + $number)
CHANGELOG
+--------+--------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+--------------------------------------------------+
| 5.3.0 | |
| | |
| | This function is now available on all platforms |
| | |
+--------+--------------------------------------------------+
SEE ALSO expm1(3), log(3), log10(3).
PHP Documentation Group LOG1P(3)