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)
Requirement is:
Based on start date: YYYYMMDD and end date in same format
to list out all of the dates including start and end in the whole range..
You can assume that the start and end dates are entered in this format.
The dates are actually directory names, and I need to go into each directory (in reverse date order) and issue a command while checking other certain conditions.
Any help would be appreciated!!
-Greg
Basically I need to wrap the following into a loop and continue processing date directories:
And the Get dates in the range, is where I get stuck at...
Last edited by moesplace; 08-08-2013 at 07:18 PM..
Reason: Clarification
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)
Hi everyone,
this strange error suddenly popped up out of no where
when I do a directory listing , the date part doesn't appear
root@oradb:/backup>ls -la
total 58069304
drwxr-xr-x 3 root system 4096 23 ▒▒▒ 21:56 .
drwxr-xr-x 44 root system 1536 23 ▒▒▒ 21:47... (4 Replies)
Hello,:)
Can anyone help me out in giving a script for my requirement please..
I have a number of files in a directory like
somenumber.0100
somenumber.0130
somenumber.0159
somenumber.0300
somenumber.0330
somenumber.0525
.
.
.
here, the number after the dot is the time (hhmm)
I... (6 Replies)
listing based on user.
I have files in some folder that come from many user
-rwxrwxr-x 1 ratih pbank 4827112 Jun 8 08:37 S92TA-8.sgy
-rwxrwxr-x 1 ratih pbank 4724568 Jun 8 08:37 S92TA-6.sgy
-rwxrwxr-x 1 ratih pbank 4929656 Jun 8 08:37 S92TA-19.sgy
-rwxrwxr-x 1 ratih ... (4 Replies)
Hello.
I want to make an unix script which create a file with the name and the date of creation of the different files that there are in a directory.
Can do you please help me?
Thank you in advance. (3 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)
I am writing a script to strip data from a log, strip last month and empty the log for the comming month. It works great at the moment, but during testing I decided to change the date to 12/31 and when I ran it, it did not find tomorrows date. Further testing revealed that no dbl digit month would... (2 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 would like to a long list of files up to a given date. I've tried:
ls -al > filelist
but this command gives me all the files. I've also have tried the find command:
find . -mtime -10 -type f -print > filelist
This gives me information on active file within the past 10 days and... (2 Replies)