10 More Discussions You Might Find Interesting
1. AIX
Hello experts, I would get from a list of files, which are more ancient than 1 hour. Examples:
Current date:
Wed Oct 28 16:10:02 SAT 2015
using:
find path -name 'file_name. *' -mtime +0
I see files with less at 00:00:00 date of the current day.
/path/file_name.20151027170725... (7 Replies)
Discussion started by: carlino70
7 Replies
2. UNIX for Advanced & Expert Users
Hi,
As the process of log cleanup, Im using the below command
find $DIR -mtime +3 -type f -exec gzip {} \;
The problem is I want to pass +3 as variable in my unix shell.
I have defined ZPDATE=+3 in my properties file and calling this property file in my script.
If i try the... (6 Replies)
Discussion started by: Deena1984
6 Replies
3. AIX
I am calling this paramters from a controlfile
CONTROLFILE="/u01/scripts/admin/filesystem.ctl"
SEARCH_PATH="`grep SEARCH_PATH $CONTROLFILE | awk -F: '{print $2}' `"
FILE_TYPE="`grep FILE_TYPE $CONTROLFILE | awk -F: '{print $2}' `"
DEL_RETENTION_SIZE="`grep DEL_RETENTION_SIZE $CONTROLFILE |... (5 Replies)
Discussion started by: javeedkaleem
5 Replies
4. Shell Programming and Scripting
What is "-mtime 0" option in find command. Does it consider the files that are of today lets say today is 4th Aug or will include files 24 hrs past from the current time???? (3 Replies)
Discussion started by: sachinkl
3 Replies
5. UNIX for Dummies Questions & Answers
Hi
I've made some test with perl script to learn more about mtime...
So, my question is :
Why the mtime from findfind /usr/local/sbin -ctime -1 -mtime -1 \( -name "*.log" -o -name "*.gz" \) -print are not the same as mtime from unix/linux in ls -ltr or in stat() function in perl : stat -... (2 Replies)
Discussion started by: hiddenshadow
2 Replies
6. Shell Programming and Scripting
Hi,
I've some files of some past days and everyday some new files are also getting added to the same.
Now how can i use mtime to get the files of the current date i.e if i want the files of 25th feb 2009 and if im finding the files on 25th 12:10 am then i should only get the files after... (4 Replies)
Discussion started by: ss_ss
4 Replies
7. UNIX for Dummies Questions & Answers
Hello,
Can someone help me to understand the following:
find /test/rman/ -mtime +30 -exec rm '{}' \;
What does -mtime +30 mean?
Thanks! (1 Reply)
Discussion started by: Blue68
1 Replies
8. UNIX for Dummies Questions & Answers
All,
Please find the below comand . I am trying to list the file that has not been accesed is past 14 days . But when you look at the display the directory "crecv1" which has date as today is displayed .. Why it is happening .
I send this code instead of ls -ltr as rm -f -r in production... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies
9. Shell Programming and Scripting
hi, :)
consider the following statement
find . -type f -mtime -1 -print
here what is the use of -1 option.
any help?
cheers
RRK (7 Replies)
Discussion started by: ravi raj kumar
7 Replies
10. UNIX for Dummies Questions & Answers
thank you for the help. (2 Replies)
Discussion started by: scooter17
2 Replies