Article View: comp.unix.shell
Article #382Re: Time-stamping files
From: Kenny McCormack
Date: Sat, 14 Nov 2026 09:28
Date: Sat, 14 Nov 2026 09:28
30 lines
2200 bytes
2200 bytes
In article <11d957u$1fnqs$1@dont-email.me>,
Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
...
>I had thus written my own 'touchlist' script/hack to "fix" that. But
>I'd be curious about thoughts concerning that behavior of 'touch' (or
>alternative approaches).
I don't have any direct comment on the issue, since I suspect that your
requirement is unique enough that you are just going to have to roll your
own solution (as you have done).
But I have 3 general comments/concerns:
1) If you touch them on-masse, isn't there some risk that they all end
up with the same timestamp - even if "touch" does re-calculate the
current time for each file - on a sufficiently fast machine? What is
the granularity of file timestamps on your system?
2) If you use the shell to expand the list, won't you fall into the old
"10 sorts before 2" problem?
3) I'm surprised that the files aren't already time-stamped in the same
order in which they were downloaded. Wouldn't that already be what you
want?
--
The randomly chosen signature file that would have appeared here is more than 4-ish
lines long. As such, it violates one or more Usenet RFCs. In order to remain
in compliance with said RFCs, the actual sig can be found at the following URL:
http://user.xmission.com/~gazelle/Sigs/Mandela
Technical Details
Message-ID:
<11d99ke$1i4he$1@news.xmission.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mailReferences:
<11d957u$1fnqs$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail From: gazelle@shell.xmission.com (Kenny McCormack) Newsgroups: comp.unix.shell Subject: Re: Time-stamping files Date: Sat, 14 Nov 2026 09:28:46 -0000 (UTC) Organization: The official candy of the new Millennium Message-ID: <11d99ke$1i4he$1@news.xmission.com> References: <11d957u$1fnqs$1@dont-email.me> Injection-Date: Sat, 14 Nov 2026 09:28:46 -0000 (UTC) Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4"; logging-data="1643054"; mail-complaints-to="abuse@xmission.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: gazelle@shell.xmission.com (Kenny McCormack)