- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to find recently created file.
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
тАО03-29-2009 02:34 AM
тАО03-29-2009 02:34 AM
Can any one help me to find recently created file in a mount point. that i have to pass in a script to as a input.
I tried with "find /u02/backup/script/ -type f -newer /u02/backup/script/"
But no expected out put. Earli response would be appericated>
Regs,
Chitta
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2009 04:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2009 04:25 AM
тАО03-29-2009 04:25 AM
Re: How to find recently created file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2009 05:04 AM
тАО03-29-2009 05:04 AM
Re: How to find recently created file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2009 05:17 AM
тАО03-29-2009 05:17 AM
Re: How to find recently created file.
There is no such thing as a file _creation_ timestamp in UNIX. The _last_modification_ timestamp or 'mtime' is the closest you have. When a file is first created, the 'mtime' represents the creation time but any update of the file or directory contents thereafter alters the 'mtime' to be current time.
Hence, finding a file in a directory with the most recent 'mtime' may only reflect that that file was more recently updated than any other, not necessarily that it is newly present.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2009 09:39 PM
тАО03-29-2009 09:39 PM
Re: How to find recently created file.
Frist create a file into /tmp
# touch -amt /tmp/abc
find files that are newer than /tmp/abc
# find /tmp -xdev -type f -newer /tmp/abc -exec ls -l {} \;
find files that are newer than /tmp/abc
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-29-2009 10:37 PM
тАО03-29-2009 10:37 PM
Re: How to find recently created file.
>touch -amt /tmp/abc
To create a reference file, you must either do it in the past at the time you need, or you need to specify the time:
touch -t [[CC]YY]MMDDhhmm[.SS] /tmp/abc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 01:30 AM
тАО03-31-2009 01:30 AM