The timestamps tag has no wiki summary.
6
votes
6answers
4k views
Shell script for moving oldest files?
How do I write a script for moving just the 20 oldest files from one folder to another? Is there a way to grab the oldest files in a folder?
13
votes
2answers
8k views
How do I do a ls and then sort the results by date created?
In what order are the dated ordered by? Certainly not alphanumeric order.
ls -lt sorts by modification time. But I need creation time.
5
votes
7answers
816 views
Bash, remove oldest files
I`m trying to delete old files from directory and leave only 3 newest files.
cd /home/user1/test
while [ `ls -lAR | grep ^- | wc -l` < 3 ] ; do
rm `ls -t1 /home/user/test | tail -1`
...
12
votes
3answers
2k views
How to list files that were changed in a certain range of time?
How can I list recursively all files that were changed between 22.12.2011 and 24.12.2011?
10
votes
3answers
1k views
What file systems on Linux store the creation time?
Are there any (good known, reliable) file systems on Linux that store the creation time of files and directories in the i-node table?
If there are, is the "changed" time replaced by the creation ...
12
votes
4answers
2k views
How can I do a “copy if changed” operation?
I would like to copy a set of files from directory A to directory B, with the caveat that if a file in directory A is identical to a file in directory B, that file should not be copied (and thus its ...