![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to display files that have been modifed between a given date range | prathima | UNIX for Dummies Questions & Answers | 1 | 04-02-2008 08:24 AM |
| Search files between a date range | zcanji | Shell Programming and Scripting | 4 | 09-05-2007 12:38 AM |
| Script that can Copy a Range of files from Tape to Hard disk | msjazzie | Shell Programming and Scripting | 0 | 08-13-2007 12:47 PM |
| cp only files in certain date range | ee7klt | UNIX for Dummies Questions & Answers | 1 | 06-27-2005 06:35 PM |
| Moving Files within a particular date range | rooh | UNIX for Dummies Questions & Answers | 3 | 03-18-2002 06:59 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
When I do a ls -lt I get a list of files by date modified from newest to oldest. I would like to be able to copy some files to another directory using a date last modified range (i.e. Apr 30 - May 13) How could I do this?
Thanks, Joe |
| Forum Sponsor | ||
|
|
|
|||
|
You can also tell find to find files that are newer than one file.
Code:
find . -type f -newer timestamped_file -print man find reveals all. ![]() Last edited by Yogesh Sawant : 05-16-2008 at 04:23 AM. Reason: added code tags |
|
|||
|
hi
you can use find command with -mtime flag like find . -mtime (-n or n or +n) | xargs cp dirname -n for files modified in last n days n for files modified exactly on last nth day +n fro files modifed before last nth day Abhishek Gera |
|||
| Google UNIX.COM |