So, Perl came to the rescue: The following small script takes a list of files and gives the last file the current time while every previous file is dated one second earlier. This worked very well with my projector.
#!/usr/bin/perl use strict; use warnings; my $timestamp = time; for my $file (reverse @ARGV) { utime $timestamp, $timestamp, $file; $timestamp--; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Incremental date for a list of files
by Anonymous Monk on Sep 14, 2011 at 15:08 UTC |