Operating System - HP-UX
1777117 Members
3321 Online
109065 Solutions
New Discussion юеВ

recently introduced to the newer option for find...does an older option exist?

 
SOLVED
Go to solution
Manuel Contreras
Regular Advisor

recently introduced to the newer option for find...does an older option exist?

To find all the files in your home directory that have been edited in some way since the last tar file, use this command:

find . -newer backup.tar.gz


Is anyone familiar with an older solution?

looking to identify files older then 15mins across several directories.

thanks,
manny
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor
Solution

Re: recently introduced to the newer option for find...does an older option exist?

Hi Manny:

If not '-newer' then '! -newer'.

That is, simply negate the operand.

# find . ! -newer backup.tar.gz

Regards!

...JRF...
Manuel Contreras
Regular Advisor

Re: recently introduced to the newer option for find...does an older option exist?

that was easy...

thank you sir :)
Dennis Handly
Acclaimed Contributor

Re: recently introduced to the newer option for find...does an older option exist?

Note that "! -newer" also includes equal.
Manuel Contreras
Regular Advisor

Re: recently introduced to the newer option for find...does an older option exist?

Noticed that from testing, thanks for brining it up :)

Currently planning on creating a control-file that's 15mins older then current time...which will be associated with the find command.




James R. Ferguson
Acclaimed Contributor

Re: recently introduced to the newer option for find...does an older option exist?

Hi (again):

> Dennis: Note that "! -newer" also includes equal.

Of course. I thought that that would go without saying ;-)

Regards!

...JRF...