[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: touch - cannot use options "backward"
From: |
Philip Rowlands |
Subject: |
Re: touch - cannot use options "backward" |
Date: |
Tue, 2 Nov 2004 13:46:59 +0000 (GMT) |
On Mon, 1 Nov 2004, Laurent Charpentier wrote:
>> touch --date "$(date --date '1 hour ago')" /tmp/foo
>In fact I want the date '1 hour' younger than its current timestamp
>(not 1 hour ago from now).
It's getting messy, but I think this works:
$ touch -d "$(date -d "$(date -r foo) 1 hour ago")" foo
Cheers,
Phil
Re: touch - cannot use options "backward", Andreas Schwab, 2004/11/02
Re: touch - cannot use options "backward", Alfred M. Szmidt, 2004/11/02