Groups | Search | Server Info | Login | Register
Groups > comp.os.linux.misc > #15136
| From | Joe Beanfish <joebeanfish@nospam.duh> |
|---|---|
| Newsgroups | comp.os.linux.misc, alt.os.linux.slackware, alt.os.linux.redhat |
| Subject | Re: Update files without changing <DateStamp>? |
| Date | 2015-08-07 13:38 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <mq2cca$ti5$1@dont-email.me> (permalink) |
| References | <mocn95$426$1@dont-email.me> <moe54s$gep$1@dont-email.me> <pan.2015.08.07.11.51.23@gmail.com> |
Cross-posted to 3 groups.
On Fri, 07 Aug 2015 11:48:34 +0000, Unknown wrote: > 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 ? No, your news reader combined lines. When reading code make sure your reader is not reformatting. Here's the example again with a blank line\ between each command: touch -r fileToEdit fileToEdit.timestamp FAVORITE_EDITOR_HERE fileToEdit touch -r fileToEdit.timestamp fileToEdit rm fileToEdit.timestamp
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