![]() |
|
|
grep unix.com with google
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Our Members | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
How to read the latest file name in adirectory.
Hello all, In a shell script, I need to get the name of the latest file which was created in a directory. i.e. I have the following directory. Code:
/tmp/public/logs/ In this directory, I want to get the latest file that was created. Can you give me a hint as how can I get the latest file, based on timestamp? Thanks in advance... |
|
|||
|
Thanks Scott, it worked. You are always such a great help...Thanks buddy, again. ![]() |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cannot read a file with read(fd, buffer, buffersize) function | naranja18she | High Level Programming | 3 | 06-12-2009 02:39 PM |
| get latest file | inquirer | Shell Programming and Scripting | 4 | 04-02-2009 12:15 PM |
| how to get the latest file | shehzad_m | Shell Programming and Scripting | 3 | 01-29-2009 06:07 PM |
| How do I get the name of latest file? | Hangman2 | Shell Programming and Scripting | 5 | 01-03-2009 10:18 AM |
| Read the latest file | wereyou | UNIX for Dummies Questions & Answers | 3 | 02-10-2008 12:12 AM |