- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: list the files
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
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
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
10-09-2013 02:35 PM
10-09-2013 02:35 PM
list the files
i want to print last one hour not updated file list in hp-ux 11.31 & hp-ux 11.11 , pls share the command
- Tags:
- find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2013 02:47 PM
10-09-2013 02:47 PM
Re: list the files
You first have to create a reference file that has a time stamp of 1 hour in the past.
For example, my current time as 17:42 EDT, so I need to create a reference file with a time stamp of 16:42 EDT:
# touch -t 10091642 afile
# ll afile
-rw-r--r-- 1 root sys 875 Oct 9 16:42 afile
Now I can find all files newer than that file:
# find . -newer afile -exec ll -d {} +
drwxr-xr-x 28 root sys 8192 Oct 9 17:41 .
-rw------- 1 root sys 499 Oct 9 17:41 ./.Xauthority
-rwx------ 1 root sys 9088 Oct 9 17:44 ./.sh_history
If you want files that are NOT newer than 1 hour old, then do:
# find . ! -newer afile -exec ll -d {} +