The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find out the Process ID for particular one file Bhuvan Linux 4 09-09-2008 09:32 AM
Process all file nazri76 Shell Programming and Scripting 2 09-21-2007 11:10 PM
how to kill process from file naamas03 Shell Programming and Scripting 17 11-07-2005 01:14 AM
how to kill process from file naamas03 Post Here to Contact Site Administrators and Moderators 1 09-16-2005 05:03 AM
process on file FastMagister High Level Programming 0 06-20-2004 09:13 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-25-2008
Registered User
 

Join Date: Jan 2008
Posts: 8
process the old file first

hello

i have direcotry in which i will be getting a number of input files with different names and i need to write a script where i need to process the older file first and then come out of the loop.

can any one throw some light

appreciate
Reply With Quote
Forum Sponsor
  #2  
Old 03-25-2008
Registered User
 

Join Date: Mar 2008
Posts: 28
My upolished way of doing it is


ls -1atr|tail -1

I'm sure there is an elegant way, but I'm not an elegant SA.
Reply With Quote
  #3  
Old 03-25-2008
Registered User
 

Join Date: Mar 2008
Posts: 28
Oops. You want older file first. Here is the change.

ls -1at |tail -1
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0