bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: touch - cannot use options "backward"


From: Jim Meyering
Subject: Re: touch - cannot use options "backward"
Date: Tue, 02 Nov 2004 23:40:03 +0100

> For example, to modify a timestamp by 1 hour:
> touch -r foo -backward 3600 foo

As of coreutils-5.1.1, you can do that by using touch's --relative (-r)
and --date (-d) options together:

  $ touch k; ls -go k; touch -r k -d '-30 min' k;ls -go k
  -rw-r--r--  1 2689 Nov  2 23:39 k
  -rw-r--r--  1 2689 Nov  2 23:09 k




reply via email to

[Prev in Thread] Current Thread [Next in Thread]