Re: selecting files by date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* shaunak saha <reach2shaunak@xxxxxxxxx> [2005-12-07 05:31 +0100]:
> In my current directory i have edited almost 90 files yesterday.I want to
> send all these files to a separate directory.Do i have to write a shell
> script for these or can I do by a single command using pipe.I have tried it
> using pipe. I have used ls -l then grep and then cut.By doing these I am
> getting the name of the files.What to do next?

find . -mtime -NUMBEROFDAYSAGO -exec cp -p "{}" TARGETDIRECTORY/ \;

check the selection with
find . -mtime -NUMBEROFDAYSAGO -ls
first.


-- 
Johannes Franken
 
Professional unix/network development
mailto:jfranken@xxxxxxxxxxx
http://www.jfranken.de/

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux