Re: date hashlist
Thomas Moritz <[email protected]> Sat, 9 Apr 2011 15:30:12 +0200
| Newsgroups | gmane.linux.suse.programming |
|---|---|
| Organization | - |
| Message-ID | <[email protected]> |
Am Freitag, 8. April 2011 17:11:43 schrieb David Haller: Hallo, > Am Fri, 08 Apr 2011, Bernhard Walle schrieb: > >* Thomas Moritz <[email protected]> [2011-04-08 11:51]: > >> Hallo, > >> waehrend der Kernel baut, habe ich noch 2 Fragen. > >> > >> 1) > >> Wie setze ich am einfachsten _alle_ Files des System auf > >> 1.1.1970 00:00 > > > >Ungetestet: > >TZ=GMT find /path/to/root -type f -exec touch -D "1970-01-01 > >00:00" {} \; > > TZ=UTC find /path/ -type f -exec touch -D "1970-01-01 00:00" {} + So konnte ich fast alles setzen, nur keine Symlinks: TZ=GMT find /path -exec touch -d "1970-01-01 00:00" {} \; Auch hier klemmt es, die Symlinks haben die alte Zeit: TZ=GMT find /path -type l -exec touch -d "1970-01-01 00:00" {} \; Die Links werden alle von find gelistet. Hier scheint touch nicht ranzuwollen? Gibt es da noch einen Trick? MfG Th. Moritz