The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 10-13-2008
gugs gugs is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 44
otheus there was no reason why I could not use:

ls -1t $dir >temp.txt
sed -n "/$NEXT/{p;q}" temp.txt

I don't even know why I didn't think of it! One of those days.

THANK YOU EVERYONE WHO HELPED, GREATLY APPRECIATED. I DON'T KNOW WHAT I WOULD WITHOUT THE HELP.