![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| parse an arpwatch file and retain most recent mac | CM64 | Shell Programming and Scripting | 8 | 04-12-2007 01:21 AM |
| Get the most recent file from a remote server | anujairaj | UNIX for Dummies Questions & Answers | 5 | 09-27-2006 11:31 AM |
| Changing name of most recent file | warpmail | AIX | 1 | 02-15-2006 07:34 PM |
| reading directory for most recent file? | duncan_glover | UNIX for Dummies Questions & Answers | 3 | 08-22-2002 08:26 AM |
| Most Recent File script | josborn777 | Shell Programming and Scripting | 1 | 03-29-2002 05:01 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
getting the most recent file
Hi,
I have files coming in every day with that days timestamp like: nameyyyymmddhhmmss.ext. I need the most recent one and so i am using cat `ls -t name*|head -1 ` > temp i am sorting the files in the decending order and am copying the most recent one into a temp file. It works at times but sometimes it does not. Is there a better way to do it? I dont want to compare it to todays absolute date ;I just want the most recent file. any suggestions will be appreciated. thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|