![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Processing a log file based on date/time input and the date/time on the log file | primp | Shell Programming and Scripting | 4 | 03-16-2008 11:23 AM |
| Loop through files in dir, omit file with latest date | stringzz | Shell Programming and Scripting | 2 | 12-04-2007 02:04 PM |
| Picking the file based on Date..Requirement | sureshg_sampat | Shell Programming and Scripting | 5 | 06-06-2007 05:51 AM |
| Grabbing lines out of a file based on a date | bsp18974 | Shell Programming and Scripting | 2 | 07-17-2006 08:58 AM |
| File management based on date created | Geehog_Rare | UNIX for Dummies Questions & Answers | 1 | 01-30-2006 04:38 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
hi all,
not sure if this has been posted b4 but i try to search but not valid. this is my question: when i do a ls -ltr there will be a list generated as follows: -rw-r--r-- 1 root sys 923260 Jan 10 04:38 FilePolling.41025.083TL021.xml -rw-r--r-- 1 root sys 1761337 Jan 10 04:40 FilePolling.41073.114TL020.xml -rw-r--r-- 1 root sys 76 Jan 11 04:32 FilePolling.41423.024TL022.xml -rw-r--r-- 1 root sys 82 Jan 11 04:40 FilePolling.41681.110TL022.xml -rw-r--r-- 1 root sys 1136429 Jan 12 04:36 FilePolling.42235.068TL020.xml -rw-r--r-- 1 root sys 82 Jan 12 04:40 FilePolling.42301.110TL022.xml -rw-r--r-- 1 root sys 791807 Jan 13 04:31 FilePolling.42629.018TL024.xml my question here is how do i grep the latest file (in this case the file will be the 13 Jan)? can it be done? thanks. |
|
||||
|
hi there,
thanks for the solution but dont think it's working. what i meant is i want the latest file to be shown not the whole list of them ie: -rw-r--r-- 1 root sys 791807 Jan 13 04:31 FilePolling.42629.018TL024.xml |
|
||||
|
hey guys,
its working...many thanks. wee |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|