HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: problem find
Operating System - HP-UX
1833772
Members
2078
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
01-02-2002 02:47 AM
01-02-2002 02:47 AM
Hi !
Iam using the find command in the following way,
# find . -mtime 15 -exec ll {} \;. My idea behind this is to list all the files that are older than 15days. But the resule of this command is that Iam getting only the files of Dec 17 2001. Even though the directory has files of Jan-Nov also Dec.
Can anybody help me understanding this.
regards,
Iam using the find command in the following way,
# find . -mtime 15 -exec ll {} \;. My idea behind this is to list all the files that are older than 15days. But the resule of this command is that Iam getting only the files of Dec 17 2001. Even though the directory has files of Jan-Nov also Dec.
Can anybody help me understanding this.
regards,
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2002 02:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2002 03:02 AM
01-02-2002 03:02 AM
Re: problem find
Hi,
Also, you might want to put "-type f" too, since if a directory is older than 15 days, as well as the files within it, you'll get repeated output. Or else use "ll -d".
find . -mtime +15 | xargs ll -d
or
find . -mtime +15 -type f | xargs ll
is what I'd use (xargs is more efficient than -exec).
Rgds, Robin.
Also, you might want to put "-type f" too, since if a directory is older than 15 days, as well as the files within it, you'll get repeated output. Or else use "ll -d".
find . -mtime +15 | xargs ll -d
or
find . -mtime +15 -type f | xargs ll
is what I'd use (xargs is more efficient than -exec).
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2002 05:42 AM
01-02-2002 05:42 AM
Re: problem find
As info...
"find -mtime +n" selects files with a modification time > n days old.
"find -mtime -n" selects files with a modification time < n days old.
"find -mtime n" selects files with a modification time for the 1 day period that begins n days in the past.
"n" days is actually "n x 24" hours from the time you run the find command.
Darrell
"find -mtime +n" selects files with a modification time > n days old.
"find -mtime -n" selects files with a modification time < n days old.
"find -mtime n" selects files with a modification time for the 1 day period that begins n days in the past.
"n" days is actually "n x 24" hours from the time you run the find command.
Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP