The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How can I identify the last saved log?
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How can I identify the last saved log?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
10-13-2008
gugs
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.
gugs
View Public Profile
Find all posts by gugs
Find gugs's past nominations received
Find gugs's present nominations given