[Top][All Lists]
[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
Re: touch - cannot use options "backward", Andreas Schwab, 2004/11/02
Re: touch - cannot use options "backward", Alfred M. Szmidt, 2004/11/02