Red Hat Configuration - how to query timestamp

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Configuration > May 2004 > how to query timestamp





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to query timestamp
nick britton

2004-05-18, 12:43 pm

Is there a command to query the time stamp? I am working a script where
anything within the last 30 days will be moved to a folder and then
burnt to the cd. By running the script. The next month will delete the
files that where moved the previous month and move the new ones and burn
the new cd.



Do you have any ideas how I can query the time to do this? I have been
looking and trying a few things but no luck. I am not very familiar with
grep is that a possibility?

Alexander Dalloz

2004-05-18, 4:47 pm

On Tue, 18 May 2004 11:45:56 -0500 nick britton wrote:

> Is there a command to query the time stamp? I am working a script where
> anything within the last 30 days will be moved to a folder and then
> burnt to the cd. By running the script. The next month will delete the
> files that where moved the previous month and move the new ones and burn
> the new cd.


man find -> atime, ctime, mtime

I can't say which of the 3 would fit your needs.

Alexander


--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com