Article View: comp.unix.shell
Article #381Time-stamping files
From: Janis Papanagnou
Date: Sat, 14 Nov 2026 08:13
Date: Sat, 14 Nov 2026 08:13
21 lines
2116 bytes
2116 bytes
Occasionally I'm downloading a series of files, be it episodes of films, chapters of documents, etc., and I'm numbering the files with a name indicating the document and containing a sequence number 1..N and I want them also stored with ascending file system time-stamps. Given that I trigger my downloads in parallel I have to 'touch' the files in the correct order afterwards. So far the use case. What I lazily did was, say, touch name*.pdf but while the shell's file expansion lists sequentially name1.pdf name2.pdf ... name8.pdf the 'touch' command seems to _operate_ arguments in *reverse* order. It's no biggie, but I had been wondering about that behavior. I'd at least have expected an option available with 'touch' to control that, or that the files are handled sequentially as provided as arguments. 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). Janis
Technical Details
Message-ID:
<11d957u$1fnqs$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.unix.shell Subject: Time-stamping files Date: Sat, 14 Nov 2026 09:13:50 +0100 Organization: A noiseless patient Spider Lines: 21 Message-ID: <11d957u$1fnqs$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 14 Nov 2026 08:13:51 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1564508"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FVEwAnNtTOOXCQdOX4o5s"; posting-host="5da5b31f753a0b33e23e844e43ccbcd4" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Rkgt9Exr/eA+rAy0P5AxCAzZkqo= sha256:OthZOdXO0SXbxyCVlbCpUSR6w+QazKPWy+pAIFxeeqY= sha1:3kFoJ1WIIr6eWrlHaTIOt5KGMq4= sha256:BZ9DLI/d+vW0f6hwer6zKMMIZ8aOsurKxFK8HdZyvNM= Content-Language: en-US