Search Results

Search: Posts Made By: davis77
2,240
Posted By davis77
date from filename
Hi all

I have the following question:

With this command, I get the latest file in a directory.
lastfile =`ls -1tr | tail -n 1`
echo $lastfile

The output is then:
partner131210.txt ...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 09:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy