- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Find acting peculiar
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
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
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-21-2008 04:44 AM
тАО08-21-2008 04:44 AM
The find command is acting in a peculiar way. I want to find all the files newer than file D.
ll -rt
total 0
Aug 19 12:11 D
Aug 20 11:29 C
Aug 21 13:38 A
Aug 21 13:38 B
find . -newer D
.
./A
./B
./C
I was expecting the output as
C
A
B !!!!
Could anyone please help ??
Solved! Go to Solution.
- Tags:
- find
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2008 05:14 AM
тАО08-21-2008 05:14 AM
SolutionThe output is as expected. It shows relative file paths and the order is as the entities exist in the *directory* being searched.
Thus, if you want them to appear in increasing "newness" of their modification timestamp, do:
# find . -newer D -exec ls -drlt {} +
If it is only *files* you want, add the '-type f' :
# find . -type f -newer D -exec ls -drlt {} +
The 'ls -drlt' orders your output.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2008 05:23 AM
тАО08-21-2008 05:23 AM
Re: Find acting peculiar
Please don't forget to evaulate the answers you receive. See:
http://forums12.itrc.hp.com/service/forums/helptips.do?#28
In fact, a corollary question of yours on 'find' needs to be scored too:
http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1254376
By scoring the responses you receive, future readers of your threads can better evaulate what helped solve *your* question.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2008 05:23 AM
тАО08-21-2008 05:23 AM
Re: Find acting peculiar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2008 06:30 AM
тАО08-21-2008 06:30 AM
Re: Find acting peculiar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2008 06:35 AM
тАО08-21-2008 06:35 AM