Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Robert Harley <harley@corton.inria.fr>
Subject: Re: How can I change year 2018 to 1998
Date: 1998/10/15	[thread overview]
Message-ID: <rz7iuhmch36.fsf@corton.inria.fr> (raw)
In-Reply-To: 6vvjk0$t70$1@news.kjist.ac.kr


"G. Hugh SONG" <ghsong@\"Spamspoiler\"kjist.ac.kr> writes:
> I installed the RedHat 5.1 on a fresh hard.
> Oh, no!   All the links and the directories are dated at year 2018.
> How can I fix this?  The month and day are all right.

I wrote a tiny program called "chyear":

syntax: ./chyear -(-a|-m) <filename> <from year> <to year>
  If access (-a) or modification (-m) time of <filename>
  falls in <from year>, it is changed to <to year>.


You can use it to do stuff like:

  foreach file ( `find . -mtime -0 -print` )
  chyear -m $file 2018 1998
  end


Source at:

  http://pauillac.inria.fr/~harley/tmp/chyear.c


Disclaimer: No warranty etc.

Bye,
  Rob.



  reply	other threads:[~1998-10-15  4:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-13  4:00 How can I change year 2018 to 1998 G. Hugh SONG
1998-10-15  4:00 ` Robert Harley [this message]
1998-10-16  4:00   ` Tan Wee Yeh
1998-10-16  4:00     ` Alex Rhomberg
1998-10-16  4:00   ` Michal Jaegermann
1998-10-19  4:00     ` Robert Harley
1998-10-19  4:00       ` Michal Jaegermann
1998-10-16  4:00 ` Joseph Sarkes
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox