- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Delete files created before 19:00 hrs CST
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2009 04:34 PM
08-20-2009 04:34 PM
Delete files created before 19:00 hrs CST
the userid will be located in the path:
/users/user1/
under this path are being created several files each day ..the user id user1 needs to delete files craeted until 19:00 hrs CST
what command can i use to do that?
I think there is acommand to do that, please let me know.
Thanks in advance
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2009 05:41 PM
08-20-2009 05:41 PM
Re: Delete files created before 19:00 hrs CST
Forum search for keywords like:
find newer touch
Or:
man find
man touch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2009 08:01 PM
08-20-2009 08:01 PM
Re: Delete files created before 19:00 hrs CST
set `date`
LOG="/home/cadm/shell/log/delete.arch.C1.$2$3.$4.log"
BUSQ="/oracle/C1/saparch"
find $BUSQ -name "C1*.dbf" -mtime +8 -exec ll {} \; >> $LOG
find $BUSQ -name "C1*.dbf" -mtime +8 -exec rm {} \;
could you please let me know the meaning of "+8" ?
how could i runthe command in order to delete files until 19:00 hrs?
thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2009 08:25 PM
08-20-2009 08:25 PM
Re: Delete files created before 19:00 hrs CST
Does it have "newer" in it anywhere? If not,
then keep looking.
> could you please let me know the meaning of
> "+8" ?
Yes. Or, you could read "man find".
> man find
Still a good idea.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2009 08:34 PM
08-20-2009 08:34 PM
Re: Delete files created before 19:00 hrs CST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2009 09:38 PM
08-20-2009 09:38 PM
Re: Delete files created before 19:00 hrs CST
> asking !!!
What don't you understand? How to do a Forum
search for:
find newer touch
???
Questions just like this have been asked and
answered many times before. The old answers
are just about as good as any new answers
you'll get here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2009 10:19 PM
08-20-2009 10:19 PM
Re: Delete files created before 19:00 hrs CST
These aren't the droids you're looking for. :-)
"-mtime +8" says files modified more than 8 days ago.
As Steven said, you should be looking at -newer and a reference file.