The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
locating additiona apps/sw on Solaris 9 bluridge SUN Solaris 3 04-04-2008 01:53 AM
locating a string pattern in a tree amit4g Shell Programming and Scripting 2 05-24-2007 08:40 AM
Locating correct XML tags ahtat99 Shell Programming and Scripting 12 08-16-2006 09:56 AM
Locating C source code chadwick0 UNIX for Dummies Questions & Answers 3 04-12-2006 09:43 AM
Locating files and directing ouput klannon Filesystems, Disks and Memory 2 03-11-2002 12:57 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-27-2007
wip_vasikaran wip_vasikaran is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 14
locating the last file in the directory

i have few files in a directory..

i want to know , how to locate or display that last file in the directory which has the max date..

pls help
  #2 (permalink)  
Old 03-27-2007
Dhruva's Avatar
Dhruva Dhruva is offline
Registered User
  
 

Join Date: Mar 2006
Location: India
Posts: 255
please try below command. or check man ls

Code:
ls -ltr

below command will give you the latest file(max date)


Code:
ls -ltr|tail -1

  #3 (permalink)  
Old 03-27-2007
wip_vasikaran wip_vasikaran is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 14
thank u so much..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0