?
Solved

Solaris --Find by date

Posted on 2007-10-16
1
Medium Priority
?
1,604 Views
Last Modified: 2013-12-27
I want to find all the logs using find , but i need to be from X date. it could be from a month or from 12 months( Solaris 5.9)
0
Comment
Question by:moto_sys
1 Comment
 
LVL 40

Accepted Solution

by:
omarfarid earned 150 total points
ID: 20087176
Hi,

Your question is not so clear, but I will assume that you want to find a file that is older than one month.

Try:

find /path -ctime +30 -a -ctime -360

or you may use the -mtime in place of -ctime

The above command will search for files that were changed more than a month ago and less a year a go.

you may add the -name "*filename*" if  you are looking for a particular file name
/path is the dir under which to search
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month16 days, 6 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question