mv files with specific date/time and count
Hi, I am trying to move a batch of files from 1 folder to another with specific date/time and count. Date and time option is working fine but not head(for count). Please help, I have below command to start with:
Below command is working fine for Date and time, but not sure how can I use it for copying only first 10 files.
find . -type f -newermt "2016-01-16 02:00:00" ! -newermt "2016-1-16 03:00:00" -exec mv '{}' /tmp/sunny/ \;
|