10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a way that we can add the equivalent of "mtime +3" to HP-UX OS?
AIX has mtime that can filter older than how many days, but it is hard to put it for HP-UX.
I am trying to filter out the output with older than 3 days. Thank you so much!!
lpstat -o |grep -v bytes |sort -nkb1 | ??... (8 Replies)
Discussion started by: danielshell
8 Replies
2. Shell Programming and Scripting
Hi,
I'm trying to find all files that have a .ksh and .p extension and that are 7 days old by using the below find command but it doesn't seem to as expected. It gives me random results.. Can someone point out what may be wrong?
find . -name "*.ksh" -o -name "*.p" -mtime -7 (2 Replies)
Discussion started by: Jazmania
2 Replies
3. UNIX for Dummies Questions & Answers
Hi, I'm sure this will be covered here already somewhere, but a search didn't throw up anything.
I'm trying to work out the extra bits needed in this command for this rsync so that it only copies files less than 7 days old:
rsync me@host:/logs/* .
I'm sure it just needs the mtime -7... (2 Replies)
Discussion started by: dlam
2 Replies
4. 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
5. AIX
Hi,
I'm using command "find . -mtime +10 -type f -print" to list the files 10 days or older but I'm getting the files which are even created today.
What am I doing wrong?
Thanks. (1 Reply)
Discussion started by: Gbyte
1 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. 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
9. UNIX for Dummies Questions & Answers
thank you for the help. (2 Replies)
Discussion started by: scooter17
2 Replies
10. UNIX for Dummies Questions & Answers
:D i have a slight problem and would appreciate if someone could clarify the confusion.. i use find alot and so far i have done ok.. but it just struck me a couple of days ago that I am not quite sure what the difference between the modification time and the change time as in ctime and mtime and... (3 Replies)
Discussion started by: moxxx68
3 Replies