The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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 Red Hat 4 09-09-2008 01:32 PM
Process all file nazri76 Shell Programming and Scripting 2 09-22-2007 03:10 AM
how to kill process from file naamas03 Shell Programming and Scripting 17 11-07-2005 04:14 AM
how to kill process from file naamas03 Post Here to Contact Site Administrators and Moderators 1 09-16-2005 09:03 AM
process on file FastMagister High Level Programming 0 06-20-2004 01:13 PM

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-25-2008
dsdev_123 dsdev_123 is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 26
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
  #2 (permalink)  
Old 03-25-2008
prichard prichard is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 29
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.
  #3 (permalink)  
Old 03-25-2008
prichard prichard is offline
Registered User
  
 

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

ls -1at |tail -1
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:10 PM.


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