Want some help from All in Unix, What I am trying to do is , A shell file should be a called with two date parameters suppose the shell file name is run.sh
run.sh <start_date> <end_date>
If end date is not given it will pick today's date. The date should be in format yyyy-mm-dd.
Now the twist is suppose I have given the dates
Inside this shell file It should pick the data range max of 6 days from start date like
at first hit the Start date and end date should be 2012-01-01 and 2012-01-07 #- 6days and print on the screen
at second hit the Start date and end date should be 2012-01-07 and 2012-01-13 #- 6days ..
.
.
.
.
at last hit the Start date and end date should be 2012-01-25 and 2012-01-30 #- 6days ..
Dear all,
how can I select in the file below only the files created between Aug 14 2014 and Feb 03 2015?
EZA2284I -rw-r--r-- 1 30 8 356954 Aug 15 2014 file1
EZA2284I -rw-rw-r-- 1 30 8 251396 Feb 05 12:53 file2
EZA2284I -rw-rw-r-- 1 30 8 ... (3 Replies)
My unix version is IBM AIX Version 6.1
I tried google my requirement and found the below answer,
find . -newermt “2012-06-15 08:13" ! -newermt “2012-06-15 18:20"
But newer command is not working in AIX version 6.1 unix
I have given my requirement below:
Input:
atr files:
... (1 Reply)
Solaris 10
ksh88
Sorry for re-hashing some of this, but I can't find a proper solution in the forums.
Starting with /a/archive containing (on and on date formatted directories)
20060313 20080518 20100725 20121015
20060314 20080519 ... (1 Reply)
Hi All,
I have a log file which has first few characters of every line as a timestamp.
2010-06-01 04:56:02,802 DEBUG {Thread-27} Some text message
2010-06-01 04:56:02,802 DEBUG {Thread-27} Some text message
2010-06-01 04:56:02,802 DEBUG {Thread-27} Some text message
2010-06-01... (7 Replies)
I have a number of instances wher I need to run reports for the previous month and need to include the last months date range in the sql.
I want to create a string which consists of the first and last dates of last month separated with an ' and ' ie for this month (Feb) I want it to say
'01/01/10... (3 Replies)
Hi Experts,
I have files name
report_20090416
report_20090417
report_20090418
report_20090420
report_20090421
I have 2 input from user
From Date: 20090417
To Date: 20090420
and I need to grep only those line in between. Output should be
report_20090417
report_20090418... (3 Replies)
Hi ,
I need some help to finish my ftp script and i need to find the last one weeks of fles updated in the sepecific directory and see those end with Z and ftp them to my backup server. Any help is appreciated.
Thanks,
Ravi :) (1 Reply)
Hi ,
I need some help to finish my ftp script and i need to find the last one weeks of fles updated in the sepecific directory and see those end with Z and ftp them to my backup server. Any help is appreciated.
Thanks,
Ravi :) (1 Reply)
Hi ,
I need some help to finish my ftp script and i need to find the last one weeks of fles updated in the sepecific directory and see those end with Z and ftp them to my backup server. Any help is appreciated.
Thanks,
Ravi :) (1 Reply)
hi all,
I'm trying to do a cp only on files I created on a given day or within a certain date range.
What's the best way to do this?
Cheers,
KL (1 Reply)