- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- More find help
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
02-11-2002 08:20 AM
02-11-2002 08:20 AM
Thanks again,
Greg
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 08:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 08:29 AM
02-11-2002 08:29 AM
Re: More find help
Use the 'newer' option of 'find' with a reference file of your choice to achieve the granularity you need:
# touch -m -t 200202111130 /tmp/ref
# find /dir -type f -newer /tmp/ref
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 08:29 AM
02-11-2002 08:29 AM
Re: More find help
# touch -t 02110730 compare
==> this will create an empty file timestanp is feb11 7.30
# find /opt -newer compare
==> do your find with the -newer option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 08:33 AM
02-11-2002 08:33 AM
Re: More find help
A small sript will do what you require :-
ls -lR | awk '{print $6,$7,$8,$9}'
Will pick out the date and times of your file.
date | awk '{ print $2,$3,$4 }'
Will pull the same date format and by comparing one against the other then if date time field is greater that one hour then pick up file name and do what you wish.
Be careful as different dirs can have same file names.
You you neen further scripting help then let the forum know.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 08:54 AM
02-11-2002 08:54 AM
Re: More find help
F.Y.I.
find and touch seemed to work ok but I had to use ! -newer to get files older than 1 hour.
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2002 09:02 AM
02-11-2002 09:02 AM
Re: More find help
Yes, negating '-newer' is/was correct. This was my oversight, but one that will no doubt reinforce this technique for you! ;-)
Regards!
...JRF...