[Top][All Lists]

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

Re: touch - cannot use options "backward"

From: Bob Proulx
Subject: Re: touch - cannot use options "backward"
Date: Tue, 2 Nov 2004 09:27:58 -0700
User-agent: Mutt/1.5.6+20040907i

Andreas Schwab wrote:
> address@hidden (Bob Proulx) writes:
> > Using a combination of GNU 'date' and GNU 'touch' this is easy.
> >
> >   touch --date "$(date --date '1 hour ago')" /tmp/foo
> This is equivalent to
>      touch --date '1 hour ago' ...

Yes!  I messed that one up largely.  (shakes head and looks sheepish)
But fortunately Phil got it right:

Philip Rowlands wrote:

> touch -d "$(date -d "$(date -r foo) 1 hour ago")" foo


reply via email to

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