I need to find files that have the ending of .out and that are older than 20 days. However, I cannot use find as I do not want to search in the directories that are underneath the directory that I am searching in.
How can this be done?? Find returns files that I do not want. (2 Replies)
I am looking for a way to show files that have been created within a certain period (say anything older than 10 minutes or so). Is there a command/series of commands I can do this with? As an example, I have the following in a directory:
-rw-r--r-- 1 owner group 70175 May 16 09:10... (1 Reply)
What command arguments I can use in unix to list files older than 10 days in my current directory, but I don't want to list the hidden files.
find . -type f -mtime +15 -print will work but, it is listing all the hidden files., which I don't want. (4 Replies)
I'm tring to:
find files recursively older than x days that contain dat or DAT then tar them
I can find the files older than 90 days containing dat with this:
find . -mtime +90 -type f -name "*dat*" -exec tar -cvvfp /some/path/some.tar {} \;
but how do I do it case insensitive?
... (3 Replies)
I need a script to find files older than 8 hours...
I know i can use mmin but the same is not working...the same only support mtime...
This is the script i created..but the same is only giving 1 hour old..as I have given dt_H as 1 only...but if i give 8..it can go in -(negative)..how to get the... (5 Replies)
Hi,
I need to delete all files, in a folder, older than 2010 that is 2009, 2008 ,.. files...
Can anyone suggest the command for that,...
Thanks
---------- Post updated at 03:29 PM ---------- Previous update was at 02:53 PM ----------
humm,.. ok right now I am using the following:... (4 Replies)
Hello,
I have a script which finds files in a directory that are older than 30 days and remove them.
The problem is that these files are too many and when i run this command:
find * -mtime +30 | xargs rm
I run this command inside the directory and it returns the error:
/usr/bin/find:... (8 Replies)
Hi, I need to find out list of files which are older than specific date. I am using 'find, and newer' commands but its not giving the correct result.
Can you please help to findout the list of files.
thanks (2 Replies)
Discussion started by: Satyak
2 Replies
LEARN ABOUT FREEBSD
ftime
FTIME(3) BSD Library Functions Manual FTIME(3)NAME
ftime -- get date and time
LIBRARY
Compatibility Library (libcompat, -lcompat)
SYNOPSIS
#include <sys/types.h>
#include <sys/timeb.h>
int
ftime(struct timeb *tp);
DESCRIPTION
This interface is obsoleted by gettimeofday(2).
The ftime() routine fills in a structure pointed to by its argument, as defined by <sys/timeb.h>:
/*
* Structure returned by ftime system call
*/
struct timeb
{
time_t time;
unsigned short millitm;
short timezone;
short dstflag;
};
The structure contains the time since the epoch in seconds, up to 1000 milliseconds of more-precise interval, the local time zone (measured
in minutes of time westward from Greenwich), and a flag that, if nonzero, indicates that Daylight Saving time applies locally during the
appropriate part of the year.
SEE ALSO gettimeofday(2), settimeofday(2), ctime(3), time(3)HISTORY
The ftime function appeared in 4.2BSD.
BSD June 4, 1993 BSD