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: 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




reply via email to

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