![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sorting Files by date and moving files in date order | rebel64 | Shell Programming and Scripting | 2 | 03-11-2008 08:45 AM |
| Create a list of files that were modified after a given date. | rkka | UNIX for Dummies Questions & Answers | 4 | 01-22-2008 01:12 AM |
| How do I organize a series of files in date order? | hedgehog001 | UNIX for Dummies Questions & Answers | 1 | 08-22-2005 08:04 PM |
| list of files in date order | Jeannine | UNIX for Dummies Questions & Answers | 2 | 08-15-2005 11:19 AM |
| retain create/mod date and time of files | jerardfjay | Shell Programming and Scripting | 5 | 06-15-2005 11:36 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Order files by create date
hi
Is there a way to sort files in the order they were created ,and move them to another directory one by one ,oldest being the first to be moved. Thanks Arif |
| Forum Sponsor | ||
|
|
|
|||
|
Hi thanks for reply
I have like 5 files(*.txt) in the directory I want to move only the oldest file in the order of creation to another directory . I am trying to use mv (ls -tr *.event |head -1) /arif/temp/ in bash shell I need help to correct the syntax of this command if my idea is right . Last edited by mab_arif16; 05-15-2006 at 09:57 AM. |
| Thread Tools | |
| Display Modes | |
|
|