Groups | Search | Server Info | Login | Register
Groups > comp.os.linux.misc > #15134
| Path | csiph.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Unknown <dog@gmail.com> |
| Newsgroups | comp.os.linux.misc, alt.os.linux.slackware, alt.os.linux.redhat |
| Subject | Re: Update files without changing <DateStamp>? |
| Date | Fri, 7 Aug 2015 11:48:34 +0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 29 |
| Message-ID | <pan.2015.08.07.11.51.23@gmail.com> (permalink) |
| References | <mocn95$426$1@dont-email.me> <moe54s$gep$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Fri, 7 Aug 2015 11:48:34 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="6f55eed8a95d6c05abb211adfca2cba1"; logging-data="15790"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+oq7JbjHjXIXwCc+0V8do2nezEWbPn1Ug=" |
| User-Agent | Pan/0.133 (House of Butterflies) |
| Cancel-Lock | sha1:Gb5GMoab2N1JsCV640rxYpo2W9o= |
| Xref | csiph.com comp.os.linux.misc:15134 alt.os.linux.slackware:25323 alt.os.linux.redhat:1 |
Cross-posted to 3 groups.
Show key headers only | View raw
On Sat, 18 Jul 2015 18:15:56 +0000, Joe Beanfish wrote: > On Sat, 18 Jul 2015 05:13:12 +0000, no.top.post wrote: >> When examining these recent/hot files, you obviously want to edit some. >> But you don't want to change their <time heirarchy>. New/additional >> files can be <correctly> dated. >> >> How could I achieve EASILY this. > > touch -r fileToEdit fileToEdit.timestamp FAVORITE_EDITOR_HERE fileToEdit > touch -r fileToEdit.timestamp fileToEdit rm fileToEdit.timestamp > > Put it in a script for ease of use. ~:/:ls -l fileToEdit -rw-r--r-- 1 root root 162018 2015-08-05 17:01 fileToEdit /:touch -r fileToEdit fileToEdit.timestamp pico fileToEdit Fails to start editot /:pico fileToEdit Starts editor /:touch -r fileToEdit.timestamp fileToEdit rm fileToEdit.timestamp /:ls -l fileToEdit* -rw-r--r-- 1 root root 162018 2015-08-05 17:01 fileToEdit -rw-r--r-- 1 root root 0 2015-08-05 17:01 fileToEdit.timestamp Perhaps the the one, one-liner is a two-command ?
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Update files without changing <DateStamp>? no.top.post@gmail.com - 2015-07-18 05:13 +0000
Re: Update files without changing <DateStamp>? Chris Elvidge <chris@raspberrypi.mshome.net> - 2015-07-18 16:44 +0100
Re: Update files without changing <DateStamp>? Joe Beanfish <joebeanfish@nospam.duh> - 2015-07-18 18:15 +0000
Re: Update files without changing <DateStamp>? Unknown <dog@gmail.com> - 2015-08-07 11:48 +0000
Re: Update files without changing <DateStamp>? Joe Beanfish <joebeanfish@nospam.duh> - 2015-08-07 13:38 +0000
Re: Update files without changing <DateStamp>? Unknown <dog@gmail.com> - 2015-08-15 01:53 +0000
csiph-web